You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an easy optimisation that can be made when printing Nat objects in base-16 (or indeed, any base that is exactly convertible from Nat::BASE –this is guaranteed to be a power of 2 that is a multiple of 8 (i.e. $2^{8n}$ for $n\in\mathbb{N}$):
Just print each digit in this base, in order. No base-conversion needed.
The text was updated successfully, but these errors were encountered:
There's an easy optimisation that can be made when printing$2^{8n}$ for $n\in\mathbb{N}$ ):
Nat
objects in base-16 (or indeed, any base that is exactly convertible fromNat::BASE
–this is guaranteed to be a power of 2 that is a multiple of 8 (i.e.Just print each digit in this base, in order. No base-conversion needed.
The text was updated successfully, but these errors were encountered: