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
/** | |
* Calculates the toFixed precision required for nicely displaying | |
* step intervals between the values given. | |
* | |
* @param int min Minimum value in set | |
* @param int max Maximum value in set | |
* | |
* @return int Number.toFixed precision | |
*/ | |
function calcRangePrecision(min, max) { |