does anyone know how to specify the numer of digits after the decimal point for a float in Lisp?
Say if I print this command at the REPL:
CL-USER 3 > (format t "~,15f" (float (/ 1 7)))
I get:
0.142857150000000
But the number is rounded at the 8th digit after the decimal point, I need to see a lot of digits after the decimal point in order to see if the number is cyclic and to calculate the period. (Actually I'm starting to try and solve Project Euler's problem 26).
I need to get something like this:
CL-USER 3 > (format t "~,15f" (float (/ 1 7)))
0.142857142857142857142857142857142857....
Thank you,
Luca