I have a function that takes a numerical value V and a tolerance value T and does the following:
if (-T < V < T) set V to 0, else do nothing.
So it turns values near zero into zero. This function is called "coerce" (by the people who programmed the function).
- Is it a suitable name for the function from the language usage point of view?
I only know
coerce in the context of
forcing so/sth INTO DOING sth. The above situiation is more like
forcing so/sth INTO BEING or BECOMING sth, so I was wondering if some other verb has to be used in this situation.
Lets consider a similar function that takes a value V, another value A and the tolerance T and does the following:
if (A-T < V < A+T) set V to A, else do nothing.
So this function turns values near A into A. I'd like to give the function a similar name, but this time with a preposition that indicates "towardness".
What would be the right preposition for its name?
CoerceTowards? Or something else?