Logarithm of integers


#1

I noticed that logarithm functions are implemented only for floating types and not i or u. Is there a reason or just an omission? I suppose I can just convert to a floating type and convert back, but that’s not ergonomic enough.


#2

What would you like 3u32.log(2)? Floor? Ceiling? Truncated? Rounded?