Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Bugs (& fixes) » int64 in JSON
Re: int64 in JSON [message #47342 is a reply to message #47339] Thu, 05 January 2017 14:26 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

akebee wrote on Thu, 05 January 2017 11:33
hi, the AsJSON cannot deal with int64 value,

the code
	Value item_id = 6364210481850221057;
	DUMP(AsJSON(item_id));


will log a double value,
how to fix it? Razz

That is not a bug, that is a feature Smile This is because javascript doesn't have int64. Only values less than 2^52 are supported for integers, higher numbers are converted to double (an loose precision!).

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with FreeBSD
Next Topic: glut init-error.
Goto Forum:
  


Current Time: Fri Mar 29 08:54:21 CET 2024

Total time taken to generate the page: 0.01186 seconds