Rename Number.prototype.clz to Math.clz

Jens Nockert jens at
Fri Jan 17 05:07:05 PST 2014

On 2014/01/17, at 13:24, Jason Orendorff <jason.orendorff at> 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.

More information about the es-discuss mailing list