We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be nice if a user could specify the string representation of infinity and NaN values.
For example:
The text was updated successfully, but these errors were encountered:
I generally agree, but I haven't found a nice way to do that.
Sorry, something went wrong.
Would something like this work? #if !defined(RYU_MEMCOPY_NAN) #define RYU_MEMCOPY_NAN int memcpy_nan( char * dest_) { memcpy( dest_, "nan", 3 ); return 3; } #endif RYU_MEMCOPY_NAN
#if !defined(RYU_MEMCOPY_INF) #define RYU_MEMCOPY_INF int memcpy_infinity( char * dest_) { memcpy( dest_, "Infinity", 8 ); return 8; } #endif RYU_MEMCOPY_INF
#if !defined(RYU_EXPONENT) #define RYU_EXPONENT 'e' #endif
...and use memcpy_nan/memcpy_infinity/RYU_EXPONENT where appropriate?
No branches or pull requests
It would be nice if a user could specify the string representation of infinity and NaN values.
For example:
The text was updated successfully, but these errors were encountered: