On 13 Nov 2009, at 3:30am, Roger Binns wrote:

> Simon Slavin wrote:
>> Integers in all languages I'm aware of are not stored as mantissa/exponent, 
>> they're stored as bits with complete precision.  
> 
> There is one huge exception I found out the hard way recently: Javascript
> stores all 'integers' as floating point and so Javascript integers lose
> precision.  For example if you try to use 9223372036854775807 in Javascript
> it will keep coming back as 9223372036854776000.

JavaScript doesn't have an integer type, just a number type:

var myVariable = 42
document.writeln ( "myVariable is a " + typeof myVariable )

Simon.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to