# from Adam Kennedy
# on Wednesday 22 April 2009 20:33:
>2009/4/23 Eric Wilhelm <[email protected]>:
>> I think this comes at it from the wrong end. You have to go from
>> floats to tuples to compare between them. So, 1.0101 -> 1.10.1.
>
>You didn't zero-pad to the nearest triplet. That's actually 1.10.100.
Right. sorry. let's start over. Austin said:
>1.1.1 -> 1.01.01
>This could be directly compared with: 1.0101
1.0101 is 1.10.100. But, the point: you can't reliably convert tuples
to numbers if any part is over 999, so you have to convert the float to
a tuple to compare with a tuple.
--Eric
--
software: a hypothetical exercise which happens to compile.
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------