Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
14
function
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
round
Method · 0.80
Tested by
no test coverage detected