how to convert a float into a ratio?
Posted: Fri Jul 25, 2014 1:54 am
Hello,
I'm a Common Lisp-Newbie, sorry for my question:
When I multiply a float with an integer, I don't get the correct result:
For example
result: 5.8500004
But I need 5.85 or 117/20.
How can I do this?
Thank you.
I'm a Common Lisp-Newbie, sorry for my question:
When I multiply a float with an integer, I don't get the correct result:
For example
Code: Select all
(* 1.95 3)
But I need 5.85 or 117/20.
How can I do this?
Thank you.