1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 06:57:45 +00:00

JSSpecCompiler: Parse arbitrarily large rational numbers in xspec mode

This commit is contained in:
Dan Klishch 2024-01-20 21:18:05 -05:00 committed by Andrew Kaster
parent 2a2e31f2ed
commit 86d54a8684
9 changed files with 64 additions and 8 deletions

View file

@ -58,6 +58,9 @@ public:
ByteString to_byte_string(unsigned rounding_threshold) const;
double to_double() const;
Crypto::SignedBigInteger const& numerator() const& { return m_numerator; }
Crypto::UnsignedBigInteger const& denominator() const& { return m_denominator; }
private:
void reduce();