MCPcopy Create free account
hub / github.com/LibPDF-js/core / isInteger

Method isInteger

src/objects/pdf-number.ts:21–23  ·  view source on GitHub ↗

* Returns true if this number is an integer (no fractional part).

()

Source from the content-addressed store, hash-verified

19 * Returns true if this number is an integer (no fractional part).
20 */
21 isInteger(): boolean {
22 return Number.isInteger(this.value);
23 }
24
25 static of(value: number): PdfNumber {
26 return new PdfNumber(value);

Callers 8

pdf-number.test.tsFile · 0.80
readNumberMethod · 0.80
formatPdfNumberFunction · 0.80
encodeDictOperandMethod · 0.80
formatNumberFunction · 0.80
formatNumberFunction · 0.80
formatNumberFunction · 0.80
formatNumberFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected