Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(type-of float-with-exponent) returns 'INTEGER #489

Open
hemml opened this issue Oct 17, 2023 · 2 comments
Open

(type-of float-with-exponent) returns 'INTEGER #489

hemml opened this issue Oct 17, 2023 · 2 comments

Comments

@hemml
Copy link
Contributor

hemml commented Oct 17, 2023

CL-USER> (type-of 1.2)
FLOAT
CL-USER> (type-of 1.2e10)
INTEGER
CL-USER> (type-of 1.2d10)
INTEGER
@hemml
Copy link
Contributor Author

hemml commented Oct 17, 2023

integerp and floatp are also wrong:

CL-USER> (integerp 1.2e1)
T
CL-USER> (floatp 1.2e1)
NIL

@davazp
Copy link
Member

davazp commented Oct 18, 2023

Yes, this is a known limitation because in Javascript all numbers are floats.

Or they used to be, now support for bignums is common and it would be great to play again with them in JSCL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants