MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / round_float

Function round_float

pdflinux.js:73–76  ·  view source on GitHub ↗
(num, s)

Source from the content-addressed store, hash-verified

71}
72
73function round_float(num, s) {
74 let multiplier = Math.pow(10, s);
75 return Math.round(num * multiplier) / multiplier;
76}
77
78var total_instrs = 0;
79var last_updated = null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected