pub fn log10Alloc(a: Const, allocator: Allocator) Allocator.Error!Limb
Calculate the base 10 logarithm, rounded down.
The allocator is used to allocate a temporary buffer.
a: Const
allocator: Allocator
2754 2755 2756 2757 2758 2759
pub fn log10Alloc(a: Const, allocator: Allocator) Allocator.Error!Limb { const limbs_buffer = try allocator.alloc(Limb, calcLog10LimbsBufferLen(a.limbs.len)); defer allocator.free(limbs_buffer); return a.log10(limbs_buffer); }
Calculate the base 10 logarithm, rounded down.
The allocator is used to allocate a temporary buffer.