Round down (toward negative infinity) to n digits.
y = floorn(x,n)
y = floorn(x,n) rounds
x down to
n digits (i.e. rounds
x down to nearest multiple of ) and returns the result as
x can be input as a single number or as an array of any size; if input as an array, then
y will be an array of the same size.
n > 0: round down to
ndigits to right of decimal point
n = 0: round down to nearest integer
n < 0: round down to
ndigits to left of decimal point
- See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples.
Tamas Kis (2022). Round Down to n Digits (floorn) (https://github.com/tamaskis/floorn-MATLAB/releases/tag/v3.0.0), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!