Const
Validates a point measurement value.
Reference: ST_PointMeasure in OOXML specification
Validates and converts a number to a positive integer (unsigned decimal number).
Reference: ST_UnsignedDecimalNumber in OOXML specification
The number to validate and convert
The floored positive integer value
Error if the value is NaN or negative
const num = unsignedDecimalNumber(10.7); // Returns 10const invalid = unsignedDecimalNumber(-5); // Throws Error Copy
const num = unsignedDecimalNumber(10.7); // Returns 10const invalid = unsignedDecimalNumber(-5); // Throws Error
The measurement value in points
The validated positive integer value
const fontSize = pointMeasureValue(12); // 12pt Copy
const fontSize = pointMeasureValue(12); // 12pt
Validates a point measurement value.
Reference: ST_PointMeasure in OOXML specification