use decimal

Sam Ruby rubys at intertwingly.net
Thu Sep 18 07:54:09 PDT 2008


2008/9/17 Mark S. Miller <erights at google.com>:
>>
>> If that is the case then 1.5m / 10.0 != 1.5 / 10.0, and thus it seems
>> wrong for 1.5m and 1.5 to be '==='.
>
> 0/-0 != 0/0. Does it thus seem wrong that -0 === 0?

Just so that I'm clear what you point is, It is worth noting that 42/0
!= 42/0, yet hopefully we all agree that 42 === 42.

Perhaps the example that you were looking for 1/0 != 1/-0 ?

> Well, yes, actually it does seem wrong to me, but we all accept that
> particular wrongness. This is just more of the same.

"just" is a powerful word.  Use sparingly.

- Sam Ruby


More information about the Es-discuss mailing list