1.1 + -1.to_f = 1.0, with a radix of |Q|
binary isn't required if you use excess-127


Gary Wright wrote in post #1041917:
> On Jan 21, 2012, at 9:06 AM, Intransition wrote:
>
>> So simple...
>>
>>   1.1 - 1.to_f == 0.1
>>   >> false
>>
>> (*rumble*) (*rumble*) Pathetic!
>
>
> Decimal literals (e.g. 1.1) can't always be represented exactly as
> binary floats:

-- 
Posted via http://www.ruby-forum.com/.