-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Milestone
Description
Would it be possible to add a math.Round(n float64, digits uint) float64 function that rounds a floating point number to the specified number of digits? This has been discussed on golang-nuts here: https://groups.google.com/d/topic/golang-nuts/ITZV08gAugI/discussion I am not entirely convinced by the required digit argument. Perhaps we should have: Round(n float64) float64 { return RoundDigits(n, 0) }
jD91mZM2, venantius, geoah, MHBauer, tetafro and 8 more
Metadata
Metadata
Assignees
Labels
No labels