U++ framework
Do not panic. Ask here before giving up.

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: 1796
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: Wed Sep 02 08:32:54 GMT+2 2026

Total time taken to generate the page: 0.00640 seconds