MCPcopy
hub / github.com/feiyu563/PrometheusAlert / absRound

Function absRound

static/plugins/chart.js/Chart.bundle.js:17499–17505  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

17497 }
17498
17499 function absRound (number) {
17500 if (number < 0) {
17501 return Math.round(-1 * number) * -1;
17502 } else {
17503 return Math.round(number);
17504 }
17505 }
17506
17507 // FORMATTING
17508

Callers 2

createDurationFunction · 0.85
addSubtractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected