Finds the closest multiple of a number to another number.

This function is valid in v2.8.0 to v2.23.0. This function has been downloaded 32 times.


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


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