The current implementation appears to be more or less correct, but is rather awkwardly imprecise when it comes to lerp'ed values. See this unit test and the associated one for lerp (called LerpBasic); in even this simple test cases, lerp'ed values are off by 5 (eg 5/55 = ~2%) from what they should be.
It is likely some imprecision is unavoidable, particularly with floats; but it seems at least reasonable to expect more precision than this.
The current implementation appears to be more or less correct, but is rather awkwardly imprecise when it comes to lerp'ed values. See this unit test and the associated one for lerp (called
LerpBasic
); in even this simple test cases, lerp'ed values are off by 5 (eg 5/55 = ~2%) from what they should be.It is likely some imprecision is unavoidable, particularly with floats; but it seems at least reasonable to expect more precision than this.