Re: formatting float output
- From: "Jakanapes" <Jakanapes@xxxxxxx>
- Date: 14 Nov 2006 13:17:16 -0800
D'oh, forgot about Binet's!
Sadly, I have to use binProlog. The only problem I'm having is that
dang formatting!
Thanks for reminding me about the formula, though, it's been years
since I used it!
Markus Triska wrote:
"Jakanapes" <Jakanapes@xxxxxxx> writes:
I'm implementing a tail recursive fibonacci program in bin prolog. The
challenge was to find the 64th fibo number.
There's an explicit formula for that, no need for recursion.
I found that Prolog ints only had 30 bits so I forced the program to
calculate in floats, with 64 bits.
Try SWI Prolog >= 5.6.0, which has unbounded integers.
Best wishes! -- Markus.
.
- Follow-Ups:
- Re: formatting float output
- From: Jan Wielemaker
- Re: formatting float output
- References:
- formatting float output
- From: Jakanapes
- Re: formatting float output
- From: Markus Triska
- formatting float output
- Prev by Date: Re: formatting float output
- Next by Date: Re: defining operators with a result
- Previous by thread: Re: formatting float output
- Next by thread: Re: formatting float output
- Index(es):