now I can convert the unit automaticly .
b_size = Byte(bucket.head_object(obj_name).content_length)
return b_size.best_prefix().__str__() //379.051757812 KiB
but the return is too long
any way I can control the precision of the return value??
For example:
379.051757812 KiB To 379.05 KiB
now I can convert the unit automaticly .
but the return is too long
any way I can control the precision of the return value??
For example:
379.051757812 KiB To 379.05 KiB