1.0.0 • Published 6 years ago
@writetome51/get-integer-part v1.0.0
Without rounding, this function returns the number without the decimal and fraction.
Examples:
let n = getIntegerPart(20.723); // n becomes 20.
let n = getIntegerPart(-20.723); // n becomes -20.
1.0.0
6 years ago