Skip to content

Any source to find how to convert float/double to string? #31

Answered by MrSmith33
rempas asked this question in Q&A
Discussion options

You must be logged in to vote

Conversion of floats to string is pretty complicated topic. I'm searching for compact and easy to port sources myself, but the smaller the method, the more flaws it has. Ryu one is the latest research (see a list of implementations there). Of course it matters only if you want precise conversion between float and string.

I've only looked at a couple ryu implementations, but the one written in Go is pretty compact and readable, I think.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rempas
Comment options

Answer selected by rempas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants