Rename Number.prototype.clz to Math.clz
jens at nockert.se
Fri Jan 17 05:07:05 PST 2014
On 2014/01/17, at 13:24, Jason Orendorff <jason.orendorff at gmail.com> 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.
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.
More information about the es-discuss