Search found 2 matches
- Mon Sep 12, 2011 7:30 pm
- Forum: Common Lisp
- Topic: Simple decimal precision problem
- Replies: 8
- Views: 11822
Re: Simple decimal precision problem
Thank you for the suggestions, I forgot to mention I am using GNU common lisp 2.6.7. My problem is really how to go about specifying that double-float should be used for the calculations. Here is the simple algorithm as I have it currently: ; Computes an approximation of pi using the Gauss-Legendre ...
- Sat Sep 10, 2011 5:13 pm
- Forum: Common Lisp
- Topic: Simple decimal precision problem
- Replies: 8
- Views: 11822
Simple decimal precision problem
Hi I am implementing the Gauss-Legendre algorithm for approximating pi in common lisp. How do I use a long float? I have not been using lisp for very long and it automatically uses float and prints somewhere around 10-14 digits, but I want to generate and display many more digits than that. I keep r...