closestMultOf()

Finds the closest multiple of a number to another number.

This function is valid in v2.8.0 to v2.24.3. This function has been downloaded 60 times.

Parameters

{number} factor
The number to find a multiple of.
{number} target
The number that the multiple of factor should approximate.

Returns

{number}
A multiple of factor that approximates target. If factor is 0 or not a number, NaN will be returned.