Use Number for IOUAmount and STAmount arithmetic

* Guarded by amendment fixUniversalNumber
* Produces slightly better accuracy in some computations.
This commit is contained in:
Howard Hinnant
2022-06-01 15:51:00 -04:00
committed by Elliot Lee
parent 48e804c40c
commit a82ad5ba76
14 changed files with 233 additions and 222 deletions

View File

@@ -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,