ionspin / kotlin-multiplatform-bignum

A Kotlin multiplatform library for arbitrary precision arithmetics
Apache License 2.0
355 stars 41 forks source link

Incorrect Result From Negative Double #90

Closed avjiang closed 4 years ago

avjiang commented 4 years ago

Describe the bug Negative figures round gives incorrect result

Expected behavior Return 0

To Reproduce Steps to reproduce the behavior:

  1. Operation
  2. Values to reproduce issue

image

ionspin commented 4 years ago

Hey @avjiang, thanks for reporting this! I'll look into it as soon as I can.