formatting float output
- From: "Jakanapes" <Jakanapes@xxxxxxx>
- Date: 14 Nov 2006 12:00:52 -0800
Hi all,
I'm implementing a tail recursive fibonacci program in bin prolog. The
challenge was to find the 64th fibo number.
I found that Prolog ints only had 30 bits so I forced the program to
calculate in floats, with 64 bits.
Now I get the right answer, but it's in exponent format.
F=1.06102e+13
but I'd like to get it to display it in full
10610209857723
I'm going through the generated help.html and trying to find answers on
the web, but I'm not having any luck. Any help is appreciated, even if
you can just point me in the right direction.
Thanks
.
- Follow-Ups:
- Re: formatting float output
- From: Markus Triska
- Re: formatting float output
- Prev by Date: Re: defining operators with a result
- Next by Date: Re: formatting float output
- Previous by thread: defining operators with a result
- Next by thread: Re: formatting float output
- Index(es):