-
Would it be possible to parse decimals into rationals? Python has a way to do this to their Fraction, And Julia has a roundabout way to do this.
E.g. `let x: BigRational = "1234.45e67".parse().unwr…
-
Below is rosetta code.
When a Rational is a whole number like Rational(a, 1) it prints as "a" not "a/1" as it should.
All rational values should be displayed as rational fractions.
```
require "bi…
-
I am proposing this design for the fist version of the units conversion.
**First** `MeasureUnit`:
- it is a struct that contains a list of `MeasureUnitItem`s.
- Each `MeasureUnitItem` contains …
-
Hi,
Where can I find BigRational typescript definitions? I've seen it exists https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/big-integer for big integer but couldn't find the repo for …
-
What could be causing the below? I have not been able to figure if there is another crate with same name.
`use num_bigint::{BigUint, BigInt};`
`use num_rational::BigRational;`
```--> src/main.rs…
janus updated
3 years ago
-
Crystal currently does not support modulo operations between integers and floats, something that is allowed for all the other arithmetic operations. So something like this:
```crystal
a = 2
b = 4…
-
Related to https://github.com/rust-num/num-bigint/issues/55
Should it be implemented on top of BigInts or some better approach is possible?
> Ratio will be trickier to deal with precision, becau…
-
Hello!
When the shares is calculation i always get 0 in diffculty.
//Share.cs//
`Difficulty = ((double)new BigRational(AlgorithmManager.Diff1, HeaderValue)) * Job.HashAlgorithm.Multiplier;`
Thi…
-
https://kt.academy/article/ek-factory-functions
現状では companion object 内の `operator fun invoke()` で fake constructor を実装しているけど、 top level function の方が良いっぽい
-
For manual exploration.
Want to have, in rough order:
- [x] Basic rendering, from input coordinates
- [ ] Toggleable display (e.g. "skip BigRational, it's too slow", then turn it on later)
- [ ] Cli…