math.IsNearlyEqual
Example
Shows the problem known as a floating-point error, due to the limited precision of decimal numbers in hardware.
Output: false
0.30000000000000004440892098500626
This was recently added in version (2025.01.22). It might only be available on the Dev Branch right now.
Checks if two floating point numbers are nearly equal.
Shows the problem known as a floating-point error, due to the limited precision of decimal numbers in hardware.