mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 00:37:35 +02:00
Parse inf/nan directly
This commit is contained in:
parent
b1ca2627d1
commit
d6881ed7d9
1 changed files with 4 additions and 4 deletions
|
@ -533,11 +533,11 @@
|
||||||
(if (token-numeric? a)
|
(if (token-numeric? a)
|
||||||
(string->number (list->string a))
|
(string->number (list->string a))
|
||||||
(let ((atom (string->symbol (list->string a))))
|
(let ((atom (string->symbol (list->string a))))
|
||||||
(if (or (eq? atom '+inf.0)
|
(if (or (eq? atom +inf.0)
|
||||||
(eq? atom '-inf.0))
|
(eq? atom -inf.0))
|
||||||
(expt 2 1000000)
|
(expt 2 1000000)
|
||||||
(if (or (eq? atom '+nan.0)
|
(if (or (eq? atom +nan.0)
|
||||||
(eq? atom '-nan.0))
|
(eq? atom -nan.0))
|
||||||
(/ 0.0 0.0)
|
(/ 0.0 0.0)
|
||||||
atom)))))
|
atom)))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue