Home:ALL Converter>How do I test binary floating point math functions

How do I test binary floating point math functions

Ask Time:2022-10-11T15:31:27         Author:xiaohuihui

Json Formatter

I implemented the powf(float x, float y) math function. This function is a binary floating point operation. I need to test it for correctness,but the test can't iterate over all floating point. what should I do.

Author:xiaohuihui,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/74024493/how-do-i-test-binary-floating-point-math-functions
yy