floorWithPrecision method
Computes number rounded down to precision.
This is equivalent to the floor
function.
Returns the largest integer less than or equal to this
.
If precision
is null
, this
is returned.
Implementation
num floorWithPrecision([num precision = 1]) => floor(this);