BigDecimal
BigDecimal copied to clipboard
Arbitrary-precision decimal arithmetic in Swift with full math functions and fixed-precision Decimal 32-, 64-, and 128-bit types.
Results
3
BigDecimal issues
Sort by
recently updated
recently updated
newest added
I encountered a bug related to the BigDecimal.asInt() function Issue : `BigDecimal("512").asInt()` -> return 500 Due to logic truncate any fractions : `let digits = n.abs.round(Rounding(.towardZero, 0))` returns the value...
When I call log10 with some values, an assertion fails at BigDecimal/BigDecimal.swift:1118. Example: ```Swift _ = BigDecimal.log10(BigDecimal(10.01)) ```
The DecimalMath implementation version of pow currently calls the BigDecimal version without passing along its rounding parameter, and instead rounds the result manually. This leads to issues with infinitely repeating...