Use 'inf' as large value instead of 1e20

'inf' is always bigger than any number, 1e20 is not.

8 bytes have a maximum value of (2**8)**8 ~ 1.8e19, so 1e20 will work in this case, but could break when more bytes are used.