floor
Round toward negative infinity.
Syntax
Section titled “Syntax”B = floor(A) % script modeB = floor(A, sig) % Excel-compatible modeDescription
Section titled “Description”In script mode, returns the largest integer less than or equal to each element of A.
In Excel-compatible mode (cell formulas), takes a second argument sig and rounds each element down to the nearest multiple of sig. sig must be a positive number; otherwise a #VALUE! cell error is returned.
Examples
Section titled “Examples”floor(3.7) % 3floor(-2.3) % -3floor(7.3, 0.5) % 7 (Excel-compat: nearest 0.5 below)