[gambit-list] floating point number representation

Marc Feeley feeley at iro.umontreal.ca
Mon Aug 20 18:34:34 EDT 2007


On 20-Aug-07, at 5:11 PM, naruto canada wrote:

> On 8/21/07, naruto canada <narutocanada at gmail.com> wrote:
>> On 8/21/07, Marc Feeley <feeley at iro.umontreal.ca> wrote:
>>>
>>> On 20-Aug-07, at 3:41 PM, naruto canada wrote:
>>>
>>>> hi
>>>>
>>>> (+ 1.0 3.0)
>>>> ;; 4.
>>>>
>>>> can I have "4.0" instead?
>>>> where do I have to change in "lib/_num.scm"? (I am guessing)
>>>
>>> In lib/_num.scm change
>>>
>>> (##define-macro (macro-chez-fp-syntax) #f)
>>>
>>> to
>>>
>>> (##define-macro (macro-chez-fp-syntax) #t)
>>>
>>> and do a "make".
>>
>> I've just tried it, it segfaults.
>> (+ 4.0 5.0)
>> Segmentation fault
>
> Gambit Version 4.0 beta 22
>> (+ 4.0 5.0)
> Segmentation fault

Strange... it works fine when I make the change:

 > (+ 4.0 5.0)
9.0

Marc




More information about the Gambit-list mailing list