mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibCrypto+LibJS: Add to_i64 method for SignedBigInteger and use it
This commit is contained in:
Notes:
github-actions[bot]
2026-01-16 12:01:41 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/8395db7e84f Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7466 Reviewed-by: https://github.com/trflynn89 ✅
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user