RE: IDL: number types

From: Boris Zbarsky [bzbarsky@MIT.EDU]

>> In that case I'd imagine the number types you'd want are Number, Integer, Int32, Uint32, and Uint16.

> What would "Integer" do?

http://es5.github.com/#x9.4

Basically converts anything that's not a number to zero, and then does the standard `sign(number) * floor(abs(number))` integer-ization.

Received on Wednesday, 20 March 2013 18:25:10 UTC