in reply to Simple calculation.
Eg. rounding to the nearest integer works above, but how about if the inputs are: 0.022 .. 0.086 by 10?
Kinda like dollars/cents, multiply by 1000 (or 10**$precision) ?
!google calculate the best Interval between tick marks -> http://stackoverflow.com/questions/14923812/displaying-axis-from-min-to-max-value-calculating-scale-and-labels
-> http://stackoverflow.com/questions/361681/algorithm-for-nice-grid-line-intervals-on-a-graph -> http://search.cpan.org/dist/Chart-Math-Axis/lib/Chart/Math/Axis.pm
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: calculate the best Interval between tick marks (dollars cents)
by BrowserUk (Patriarch) on May 09, 2015 at 08:50 UTC |