[Development] QConfig update.
    Julien Blanc 
    julien.blanc at nmc-company.com
       
    Wed Oct 15 09:27:42 CEST 2014
    
    
  
On 14/10/2014 19:06, Milian Wolff wrote:
> It might mean that you'll have to store
> everything as a string in JSON to prevent a loss of data when storing e.g.
> std::limits<quint64>::max() (note: JSON only knows double).
To be more precise : JSON itself does not assume anything about number 
precision. JavaScript, as well as QJsonValue, do assume that any number 
is a double precision, but nothing in RFC 4627 says that.
libjson (at least) assumes that number values in JSON can be signed 
int64. This specific issue may be better handled in QJsonValue than in a 
QConfig class.
Regards,
Julien Blanc
    
    
More information about the Development
mailing list