Validates and converts a number to an integer (decimal number).
Reference: ST_DecimalNumber in OOXML specification
The number to validate and convert
The floored integer value
Error if the value is NaN or infinite, which no integer can be written as
const num = decimalNumber(10.7); // Returns 10const negative = decimalNumber(-5.3); // Returns -6 Copy
const num = decimalNumber(10.7); // Returns 10const negative = decimalNumber(-5.3); // Returns -6
Validates and converts a number to an integer (decimal number).
Reference: ST_DecimalNumber in OOXML specification