MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / transform

Function transform

app/rcc/scripts/transforms/js/round_decimals.js:14–18  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

12//
13
14function transform(value) {
15 var N = 2;
16 var factor = Math.pow(10, N);
17 return Math.round(value * factor) / factor;
18}

Callers

nothing calls this directly

Calls 1

roundMethod · 0.80

Tested by

no test coverage detected