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

Re: IDL: number types

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 20 Mar 2013 14:28:58 -0400
Message-ID: <5149FFEA.7020907@mit.edu>
To: Domenic Denicola <domenic@domenicdenicola.com>
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>
On 3/20/13 2:24 PM, Domenic Denicola wrote:
> Basically converts anything that's not a number to zero, and then does the standard `sign(number) * floor(abs(number))` integer-ization.

Ah, interesting.  That might be worth adding, yes (though note that it 
has to be expressed as a floating-point type in the end, because 
Infinity and -Infinity are valid values).

-Boris
Received on Wednesday, 20 March 2013 18:29:29 UTC

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