chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Chicken 5 compilation, coerced inexact literal number warning. What am I


From: Matt Welland
Subject: Chicken 5 compilation, coerced inexact literal number warning. What am I missing here?
Date: Tue, 6 Apr 2021 21:37:32 -0700

This one I sort of understand but it does seem annoying:

Warning: coerced inexact literal number `9e+99' to fixnum 8999999999999999948859130765266355329578537025198862586562510896759102769772101980841694466750283776

but the following I don't understand:

This line:
(define megatest-version 1.6584)

generates this warning:
Warning: literal is out of range - will be truncated to integer: 1.6584

But a small test program works fine:

$ cat testit.scm
(module testit
*
(import scheme)
(define abc 1.2345)
)

(import testit)
(print (/ abc 2))
$ csc testit.scm
$ ./testit
0.61725
--
Complexity is your enemy. Any fool can make something complicated.
It is hard to keep things simple. - Richard Branson.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]