-
As far as I know, the `bc` library (and `gmp` too I think) works on arbitrary precision numbers and doesn't discriminate between `int` or `float`/`decimal`. I am re-writing a TypeScript library to PHP…
-
ucum.js: **0.0.2**
The library seems to suffer from the effects of number representation errors, I assume these are caused by using binary floating point arithmetic for internal calculations.
Th…
-
I want to make a library for BigInts/BigRationals/BigDecimals, and I need to perform certain mathematical operations with them. I was thinking that a way to implement "subroutines" would be to allow p…
s5bug updated
4 years ago
-
Unfortunately for typescript, it's type system is an afterthought of Javascript. And binance mostly reports it's numbers using strings in the JSON. So everywhere that a type has been declared as numbe…
-
Unfortunately fantomas set up to run on save, scrambled a huge script [file](https://gist.github.com/halcwb/eaad0977d962f17aaee78c18e6670a48) of mine. This has caused literally days of work loss.
…
-
Consider supporting explicit unit values (e.g. `Meter`, `Foot`). Currently `uom` stores everything as `Quantity` with an associated type for base units. This has a number of advantages but it also lim…
-
-
Hi,
Similar to `getScale`, would you be on favor of adding a method `getPrecision`?
I want to perform app side validation on BigDecimal before passing to Postgres numeric fields, and `getPrecision…
-
No idea if this is the right place to report this, but at least with 0.18.2
{{{
$brew install crystal-lang
...
FH1002466:dev packrd$ crystal run rational.cr
ld: library not found for -lgmp
clang: err…
-
For some reason, when multiplying by a reciprocal, the result isn't properly rounded.
The code:
System.out.println(DefaultBigDecimalMath.divide(new BigDecimal("2"), new BigDecimal("3")))
System.o…