PCSX2 Documentation/Nightmare on Floating-Point Street: Difference between revisions
Jump to navigation
Jump to search
m (Ngng moved page Nightmare on Floating-Point Street to PCSX2 Documentation/Nightmare on Floating-Point Street without leaving a redirect) |
No edit summary |
||
Line 18: | Line 18: | ||
When comparing two floating point numbers a and b, never use <code>a == b</code>. Instead use something along the lines of <code>fabs(a-b)< epsilon</code> where epsilon is some very small number. | When comparing two floating point numbers a and b, never use <code>a == b</code>. Instead use something along the lines of <code>fabs(a-b)< epsilon</code> where epsilon is some very small number. | ||
{{PCSX2 Documentation Navbox}} |