Closed mahnunchik closed 3 years ago
muln method gives wrong result using fractional number for numbers up to 67108864.
muln
67108864
new BN('67108864', 10).muln(0.5) // actial 0 // expected 33554432
Numbers less than 67108864 works as expected:
new BN('67108863', 10).divn(2) // 33554431
@indutny @fanatid please have a look at this issue
@mahnunchik , I don't think fractional numbers are supported by this library, try new BN(0.5).toString()
Fractional numbers are not supported.
muln
method gives wrong result using fractional number for numbers up to67108864
.Numbers less than
67108864
works as expected: