close
Skip to main content
Score of 2

How can I generate human-friendly numeric scale values between two float64 values in Go?

A useful approach is to first calculate the ideal mathematical step and then round that step up to a human-friendly value from the sequence: 1 × 10ⁿ 2 × 10ⁿ 5 × 10ⁿ 10 × 10ⁿ This is the same general ...

Only top scored, non community-wiki answers of a minimum length are eligible