I tried to convert file size from bytes to a human readable format. There's the hurry.filesize package, and another implementaion by Fred Cirera here:
Using hurry.filesize:
size(1024 ** 3.4)
Out[69]: '15G'
Using Fred Cirera:
sizeof_fmt(1024 ** 3.4)
Out[68]: '16.0GiB'
I am confused, so I try to calculate
1024 ** 0.4
Out[71]: 16.000000000000004
Why they got different result?