floor<T extends num> function
Floors value
to the nearest nearest
.
Implementation
T floor<T extends num>(T value, num nearest) => nearest == 1 ? value : (value / nearest).floor() * nearest as T;
Floors value
to the nearest nearest
.
T floor<T extends num>(T value, num nearest) => nearest == 1 ? value : (value / nearest).floor() * nearest as T;