Search found 2 matches

by gigg
Sat Jul 26, 2014 12:16 am
Forum: Common Lisp
Topic: how to convert a float into a ratio?
Replies: 2
Views: 7551

Re: how to convert a float into a ratio?

That was helpful. Many thanks.
by gigg
Fri Jul 25, 2014 1:54 am
Forum: Common Lisp
Topic: how to convert a float into a ratio?
Replies: 2
Views: 7551

how to convert a float into a ratio?

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

Code: Select all

(* 1.95 3)
result: 5.8500004

But I need 5.85 or 117/20.

How can I do this?

Thank you.