On 2014/01/17, at 13:24, Jason Orendorff <[email protected]> wrote:

> Then you could write: Math.bitlen(x >>> 0)
> 
> That would return 32 if x is a negative 32-bit signed int, because
> ">>> 0" converts ToUint32.
> 
> -j

Yeah, but when would I need to calculate it on a floating-point number?

Allowing that is just confusing when all other bit-oriented operation 
implicitly does ToInt32.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to