W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2013

RE: IDL: number types

From: Domenic Denicola <domenic@domenicdenicola.com>
Date: Wed, 20 Mar 2013 18:24:32 +0000
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: Anne van Kesteren <annevk@annevk.nl>, Marcos Caceres <w3c@marcosc.com>, Yehuda Katz <wycats@gmail.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <B4AE8F4E86E26C47AC407D49872F6F9F6EFB6430@BY2PRD0510MB354.namprd05.prod.outlook.com>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:09 UTC