mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Use Number for IOUAmount and STAmount arithmetic
* Guarded by amendment fixUniversalNumber * Produces slightly better accuracy in some computations.
This commit is contained in:
committed by
Elliot Lee
parent
48e804c40c
commit
a82ad5ba76
@@ -411,13 +411,11 @@ class TrustAndBalance_test : public beast::unit_test::suite
|
||||
|
||||
if (with_rate)
|
||||
{
|
||||
// 65.00000000000001 is correct.
|
||||
// This is result of limited precision.
|
||||
env.require(balance(
|
||||
alice,
|
||||
STAmount(
|
||||
carol["USD"].issue(),
|
||||
6500000000000001ull,
|
||||
6500000000000000ull,
|
||||
-14,
|
||||
false,
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user