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?


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.4.0 : Friday, 17 January 2020 17:14:08 UTC