mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Is it a valid fix ????
This commit is contained in:
@@ -1021,7 +1021,7 @@ public:
|
||||
Number const shareTotal{1148};
|
||||
Number assetTotal{1148, -1};
|
||||
|
||||
assets = assetTotal * (shares / shareTotal);
|
||||
assets = (assetTotal * shares) / shareTotal;
|
||||
std::cerr << assets << '\n'; // 3.699999999999999/1/1
|
||||
BEAST_EXPECT(assets == Number(37l, -1)); // FAIL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user