MCPcopy Create free account
hub / github.com/breck7/scroll / precisionFixed

Function precisionFixed

external/.d3.js:9796–9798  ·  view source on GitHub ↗
(step)

Source from the content-addressed store, hash-verified

9794}
9795
9796function precisionFixed(step) {
9797 return Math.max(0, -exponent(Math.abs(step)));
9798}
9799
9800function precisionPrefix(step, value) {
9801 return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));

Callers 1

tickFormatFunction · 0.85

Calls 2

exponentFunction · 0.85
maxMethod · 0.80

Tested by

no test coverage detected