Menu

#26 Representation of float

0.5.0
closed-wont-fix
nobody
Value (7)
5
2015-03-06
2011-02-03
No

when using json::value(float) , float is being casted to double and causing the value to change. is it possible to overload the constructor and = operator and other relevant operators for float ?

Discussion

  • Baptiste Lepilleur

    Would you mean providing a specific test case that show this? e.g. what value of float are you using?

     
  • Christopher Dunn

    • status: open --> open-invalid
     
  • Christopher Dunn

    There is some discussion of our poor handling for numbers at: https://github.com/open-source-parsers/jsoncpp/issues

    Not much we can do about it though.

     
  • Christopher Dunn

    • status: open-invalid --> closed-wont-fix
    • Group: --> 0.5.0
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.