LibCrypto: Add a method to count the number of digits in a big int

This commit is contained in:
Timothy Flynn
2026-02-21 08:46:06 -05:00
committed by Tim Flynn
parent 79d5fdc871
commit ecdaa7911f
Notes: github-actions[bot] 2026-02-22 14:40:33 +00:00
3 changed files with 41 additions and 0 deletions

View File

@@ -47,6 +47,8 @@ public:
[[nodiscard]] static ErrorOr<UnsignedBigInteger> from_base(u16 N, StringView str);
[[nodiscard]] ErrorOr<String> to_base(u16 N) const;
[[nodiscard]] size_t count_digits_in_base(u16 base) const;
[[nodiscard]] u64 to_u64() const;
enum class RoundingMode {