------art_34481_6375727.1133201809333
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Do you have a FIT fixture for running Ruby ?

j


On 11/28/05, Ed Howland <ed.howland / gmail.com> wrote:
>
> Hello,
>
> I am trying to get the Division example on the FIT wiki
> http://fit.c2.com/wiki.cgi?WhatAndHowTalk
>
> to run under Ruby and the Fit framework. I have 2 questions. First I
> get red results on last 3 tests because the precision in the HTML
> table is only up to 8 digits, but Ruby is calculating 15 digits.
>
> 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.
>
> Is there a way coerce a Ruby float to an aribitray precision via
> truncate or round?
>
> Thanks
>
>


--
"Remember. Understand. Believe. Yield! -> http://ruby-lang.org"

Jeff Wood

------art_34481_6375727.1133201809333--