mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
fixing number->string for non-full-numeric-tower builds
This commit is contained in:
parent
0c80f38a19
commit
1ec9d578d0
1 changed files with 2 additions and 0 deletions
|
@ -1097,6 +1097,7 @@
|
|||
(define (exact-complex? x)
|
||||
(and (%complex? x) (exact? (complex-real x)) (exact? (complex-imag x)))))
|
||||
(else
|
||||
(define (%complex? x) #f)
|
||||
(define (exact-complex? x) #f)))
|
||||
|
||||
(cond-expand
|
||||
|
@ -1122,6 +1123,7 @@
|
|||
1.0
|
||||
(exact->inexact (denominator (inexact->exact x)))))))
|
||||
(else
|
||||
(define (ratio? x) #f)
|
||||
(cond-expand
|
||||
(complex
|
||||
(define (exact? x)
|
||||
|
|
Loading…
Add table
Reference in a new issue