PCSX2 Documentation/Nightmare on Floating-Point Street: Difference between revisions
Jump to navigation
Jump to search
PCSX2 Documentation/Nightmare on Floating-Point Street (view source)
Revision as of 19:42, 19 July 2015
, 19 July 2015no edit summary
No edit summary |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 16: | Line 16: | ||
'''Moral of the blog''' | '''Moral of the blog''' | ||
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}} |