List Info

Thread: Interesting Float to Fraction conversion




Interesting Float to Fraction conversion
user name
2006-10-25 06:14:27
I got this with 2.2 when trying to convert a float to a
fraction:

st> 1.14474205677314q-13 asFraction printNl !
0/1
Fraction new "<0x10eb4a0>"
st> 1.14474205677314q-9 asFraction printNl !
1/873559239
Fraction new "<0x10eb648>"
st> 1.14474205677314q-10  asFraction printNl !
1/8735592390
Fraction new "<0x10eb958>"
st> 1.14474205677314q-11  asFraction printNl !
1/87355923902
Fraction new "<0x10ebca0>"
st> 1.14474205677314q-12  asFraction printNl !
1/873559239029
Fraction new "<0x10ec068>"
st> 1.14474205677314q-13  asFraction printNl !
0/1
Fraction new "<0x10ec2e0>"



_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )