On Nov 28, 2005, at 10:07 AM, Ed Howland wrote:

> And second, even after I adjust the HTML to match the results, they
> till don't equal. I am thinking this is because of '==' vs. eql? on
> floats.

No.  Float precision.

> Is there a way coerce a Ruby float to an aribitray precision via
> truncate or round?

For testing float equality do what Test::Unit's assert_in_delta does.

-- 
Eric Hodel - drbrain / segment7.net - http://segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com