Created
January 18, 2017 03:24
-
-
Save cdemers/50a04304b64e1ae5c77d83ea293ee8a7 to your computer and use it in GitHub Desktop.
Go (golang) float formatting WITHOUT rounding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s := fmt.Sprintf("%.4f", 10/6.0)[0:5] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment