jscl-project / jscl

A Lisp-to-JavaScript compiler bootstrapped from Common Lisp

Home Page:https://jscl-project.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR: Function 'FLOAT' undefined

VitoVan opened this issue · comments

Welcome to JSCL (version 25e0341 built on 18 May 2023)

JSCL is a Common Lisp implementation on Javascript.
For more information, visit the project page at [GitHub](https://github.com/jscl-project/jscl).

CL-USER> (float (/ 2 3))
ERROR: Function 'FLOAT' undefined
CL-USER>

in SBCL:

* (/ 2 3)
2/3
*

in JSCL

Welcome to JSCL (version 25e0341 built on 18 May 2023)

JSCL is a Common Lisp implementation on Javascript.
For more information, visit the project page at [GitHub](https://github.com/jscl-project/jscl).

CL-USER> (/ 2 3)
0.6666666666666666
CL-USER>

it is already float, so...

I haven't double checked the spec.

related: #104

bigint on the way: #404

bignum on the way: https://github.com/jtobey/javascript-bignum