-
Hello,
if either this.num.valueOf() or this.denom.valueOf() is "infinity", then this.valueOf() will be NaN. This can be avoided with something like:
BigRational.prototype.valueOf = functio…
-
Is there any interest for having conversion from f32/f64 to Ratio? I've implemented that in my code, based on a continued fractions algorithm: https://github.com/sdroege/gst-plugin-rs/blob/d72f1f716b6…
-
**Issue by [lifthrasiir](https://github.com/lifthrasiir)**
_Wednesday Apr 16, 2014 at 10:23 GMT_
_For earlier discussion, see https://github.com/rust-lang/rust/issues/13555_
_This issue was labelle…
-
e.g. `bigInt(64).root(3) // 4`.
One would think that "pow" would be enough (inverting the radix), but actually no, because `bigInt(64).root(1/3) // 3`, I assume because of rounding error since `bigIn…
-
when you execute toDecimal(0) it returns the default number of decimals instead of zero because `0 || whatever` always return `whatever`
It this intentional?
https://github.com/peterolson/BigRat…
sha49 updated
7 years ago
-
XBuild Engine Version 14.0
Mono, Version 4.6.2.0
Copyright (C) 2005-2013 Various Mono authors
Build started 5/15/2018 10:04:51 AM.
__________________________________________________
/home/temp/…
-
Similar to [BigInt](https://github.com/crystal-lang/crystal/blob/master/src/big_int/big_int.cr) and [BigRational](https://github.com/crystal-lang/crystal/blob/master/src/big_rational.cr), it would be …
-
@eiriktsarpalis has reported [in Twitter](https://twitter.com/eiriktsarpalis/status/890915006811959296) that `let incr x = x + 1M` in the REPL is compiled as:
```js
export function incr(x) {
re…
-
I have the following code, it does not raise an exception but it doesn't seem to give the results.
``` ruby
pg=PG.connect(ENV["CONNECTION_STRING"])
query =
-
This is kind of a merger of other issues, in particular #3 (Scales and Money classes) and #4 (Money contexts), that happen to be tightly related.
I figured we've reached a point where we have a com…