kotlin-multiplatform-bignum
kotlin-multiplatform-bignum copied to clipboard
A Kotlin multiplatform library for arbitrary precision arithmetics
**Describe the bug** ```kotlin assertTrue { val bigDecimal = "12.374".toBigDecimal() val doubleExpected = 12.374 // we know this can be represented val narrowed = bigDecimal.doubleValue(true) narrowed == doubleExpected } ```...
Added: - exp (by infinite series) - cos (by infinite series) - sin (by infinite series) - tan (by cos/sin) - cosh (by infinite series) - sinh (by infinite series)...
**Is your feature request related to a problem? Please describe.** The calculator app I've written (not currently using this library, but I'm certainly considering it) currently works in bases 10...
**Describe the solution you'd like**: Support for trigonometric functions, e.g. `sin` `cos` `tan`. Can be implemented using the [MacLaurin series](https://github.com/eobermuhlner/big-math/blob/2a926e781a559444867bcd7a969451e346d83c54/ch.obermuhlner.math.big/src/main/java/ch/obermuhlner/math/big/internal/SinCalculator.java). **Describe alternatives you've considered**: https://github.com/eobermuhlner/kotlin-big-math
**Is your feature request related to a problem? Please describe.** Exponentiation of BigDecimals by other BigDecimals is currently not supported, which forces a conversion to int value meaning precision loss....
It'd be great to consistently have all releases of this library published using GitHub releases too so we can be notified: https://github.com/ionspin/kotlin-multiplatform-bignum/releases
**Describe the bug** README is not well structured **To Reproduce** Look at README file **Expected behavior** README should provide a quick overview what the library provides, way to contribute. Detailed...
**Describe the bug** Test classes and tests themselves can be better organized **To Reproduce** Steps to reproduce the behavior: Look at tests **Expected behavior** A clear testing structure is provided,...
**Additional context** I am implementing a database. Therefore my use case is: 1. Instantiate a BigInteger once from a String 2. convert it to ByteArray, save it to a File...
Currently this library is lacking advanced math features, such as: sin, cos, sqrt, nroot, log, etc. Are these within the scope of this library? If not, what workaround would you...