std::from_chars limitation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all,

I am reading the following note taken from url (*)

[...]
The guarantee that std::from_chars can recover every floating-point
value formatted by std::to_chars exactly is only provided if both
functions are from the same implementation.
[...]

Could some gurus please confirm my understanding of the above note for
*finite* and/or *normal* numbers (not interested in the special
nan/inf case) ?

My understanding is that: GCC and MSVC may output a different ASCII
text given the same inupt floating-point value (bitwise identical).

Using google/chatgpt I could not find one such number.

Thanks,

(*) https://en.cppreference.com/w/cpp/utility/to_chars.html
-- 
Mathieu



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux