Comments (2)
Good point. You're right that it's a bit weird.
I'm not 100% decided on which way to handle this. The NaN arithmetic can result in all kinds of strange situations as well and feels a bit strange to have NaN as the default. On the other hand, it might be the most straightforward and expected way to deal with this issue.
I'll try to draft some proof-of-concept of how it could work.
Thanks for bringing this up! 😊
from rationals.
I went with the #26 solution. This is now released as version 2.0.0.
@dmytro-sheyko Thank you a lot again for your contribution related to this. Any more improvements or ideas are welcome.
from rationals.
Related Issues (20)
- Fix missing XML documentation (lots of warnings)
- Write documentation about each feature with samples
- How do your print decimal form with more than 6 decimals? HOT 3
- Add tuple deconstructor
- Zero decimal representation for negative Numerator and Denominator HOT 1
- magnitude bug! HOT 2
- Fix comparison when one of denominators is negative and both numbers are positive
- Can the Rational struct be made readonly?
- Apparent loss of percision when converting Rational -> double HOT 1
- Add Simplify method HOT 2
- Implement string parser
- Store canonical form if at least once computed HOT 1
- Add support for .NET 7 generic math
- Publish on NuGet
- Example number doesn't parse HOT 1
- Add support for parsing numbers with decimal point as rationals
- Incorrect addition HOT 1
- Add support for explicit type conversions from decimals, doubles and floats and rationals
- Implement additional functions similar to the ones on Math class for other types HOT 1
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 rationals.