Format the Float64 to match the spec instead of converting to an Int. Perhaps you can find examples here: How to format float numbers in human-friendly format?
Format the Float64 to match the spec instead of converting to an Int. Perhaps you can find examples here: How to format float numbers in human-friendly format?