mozilla/rust — pull request #6296 by ILyoan (2013-05-07 07:42:35+00:00)
Title: Add RelativeEq trait

Fix for #5316
Current Implementation of ApproxEq trait uses absolute error method, and this method is working well for small float point numbers but not suitable for large numbers.
This patch provides RelativeEq trait and implementation of it uses relative error method that will be better for comparing big numbers.