We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assertEquals("${-15.5 % 360.0}", ((-15.5).bd % 360.bd).toStringExpanded())
fails:
Expected :-15.5 Actual :-0.155
Full test cor convenience:
import com.ionspin.kotlin.bignum.decimal.BigDecimal import kotlin.test.Test import kotlin.test.assertEquals val Double.bd get() = BigDecimal.fromDouble(this) class BdtoolsTest { @Test fun testMod2() { // OK assertEquals("15.5", ((360.bd * 5 + 15.5.bd) % 360.bd).toStringExpanded()) // NG assertEquals("${-15.5 % 360.0}", ((-15.5).bd % 360.bd).toStringExpanded()) } }
The text was updated successfully, but these errors were encountered:
Thanks for reporting!
Sorry, something went wrong.
ionspin
No branches or pull requests
fails:
Full test cor convenience:
The text was updated successfully, but these errors were encountered: