LibCrypto+LibJS: Add to_i64 method for SignedBigInteger and use it

This commit is contained in:
Luke Wilde
2026-01-14 13:46:06 +00:00
committed by Tim Flynn
parent 115a794291
commit 8395db7e84
Notes: github-actions[bot] 2026-01-16 12:01:41 +00:00
3 changed files with 7 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ public:
[[nodiscard]] static ErrorOr<SignedBigInteger> from_base(u16 N, StringView str);
[[nodiscard]] ErrorOr<String> to_base(u16 N) const;
[[nodiscard]] i64 to_i64() const;
[[nodiscard]] u64 to_u64() const;
[[nodiscard]] double to_double(UnsignedBigInteger::RoundingMode rounding_mode = UnsignedBigInteger::RoundingMode::IEEERoundAndTiesToEvenMantissa) const;