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