Comments (6)
Thanks for the report! I agree this would be a better behavior.
We could also do a better job computing exact
for large double's. These should be converted to bignums if they are outside the fixnum range.
from cyclone.
Added code to signal an error when exact
receives a NAN or infinite value.
Also tightened up support for other types of edge cases involving doubles, bignums, and complex numbers.
from cyclone.
Yes, I've just tested and it works fine here! Thanks!
I guess this PR can be closed...
from cyclone.
We could also do a better job computing
exact
for large double's. These should be converted to bignums if they are outside the fixnum range.
That would be great!
Also, since you mentioned, I see that Cyclone has a bignum?
predicate, but not fixnum?
. Maybe it would be nice to have the latter too?
from cyclone.
There is a fixnum?
procedure, though it is a bit buried in SRFI 143 rather than always being included in the REPL environment: https://github.com/justinethier/cyclone/blob/master/docs/api/srfi/143.md
from cyclone.
There is a
fixnum?
procedure, though it is a bit buried in SRFI 143 rather than always being included in the REPL environment: https://github.com/justinethier/cyclone/blob/master/docs/api/srfi/143.md
Isn't it convenient / useful enough to have in the REPL environment? (Not really complaining -- it it's there, it's good enough already!)
from cyclone.
Related Issues (20)
- Cyclone doesn't read `-inf.0` as negative (?) HOT 3
- Invalid equality between positive and negative infinity HOT 1
- Rationals (not supported) cause Cyclone to give some confusing answers HOT 2
- Add code formatting tooling / CI HOT 2
- Optimize memory allocation for symbols
- Evaluating `1#` results in `#f`? HOT 8
- Latest rational unit tests broken on mac OS HOT 1
- `truncate-quotient` should return exact number where possible HOT 1
- Allow reader to support #i / #e for rational numbers
- Add unit testing for runtime
- -I / -A not working for lib-dirs in $HOME HOT 3
- Improve CI release tooling
- Some issues compiling on windows with MSYS2 - CLOCK_MONOTONIC undeclared in time.c 355 HOT 3
- Does Cyclone Scheme have a method of handling dates? HOT 3
- +i and -i are not bound; (sqrt -1) evaluates to NAN HOT 3
- Trigonometric functions do not generate complex results
- string->number does not handle complex numbers
- Memory usage and tail calls HOT 11
- ConcurrencyKit Release 0.7.2 HOT 1
- Add flag to turn off beta expansion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyclone.