MCPcopy Index your code
hub / github.com/diegomura/react-pdf / number

Method number

packages/pdfkit/src/object.js:113–119  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

111 }
112
113 static number(n) {
114 if (n > -1e21 && n < 1e21) {
115 return Math.round(n * 1e6) / 1e6;
116 }
117
118 throw new Error(`unsupported number: ${n}`);
119 }
120}
121
122export default PDFObject;

Callers 3

convertMethod · 0.80
dashFunction · 0.80
transformFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected