Float point Hostfunctions unit tests (#5656)

* Added direct unittests for float hostfunctions
This commit is contained in:
Olek
2025-08-14 10:21:21 -04:00
committed by GitHub
parent 5dc0cee28a
commit 0d0e279ae2
4 changed files with 992 additions and 127 deletions

View File

@@ -58,6 +58,13 @@ private:
normalize();
public:
/* The range for the mantissa when normalized */
static std::int64_t constexpr minMantissa = 1000000000000000ull;
static std::int64_t constexpr maxMantissa = 9999999999999999ull;
/* The range for the exponent when normalized */
static int constexpr minExponent = -96;
static int constexpr maxExponent = 80;
IOUAmount() = default;
explicit IOUAmount(Number const& other);
IOUAmount(beast::Zero);