Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
122
export
default PDFObject;
Callers
3
convert
Method · 0.80
dash
Function · 0.80
transform
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected