libyang
libyang copied to clipboard
Whether the precision of Floating-point arithmetic numbers may cause inaccuracy comparsion.
When I compile code with -Wfloat-equal and find such warning: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
'num' is 'long double' type. Whether the precision of Floating-point arithmetic numbers may cause inaccuracy comparsion. @michalvasko
Whether the precision of Floating-point arithmetic numbers may cause inaccuracy comparsion.
I suppose it can, do you have a better idea that can be used for any XPath expressions?