Skip to content

Any way to control precision with best_prefix() methods???? #61

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions