Skip to content

Allow combining notation keyword with output_type=str #12

@tadamcz

Description

@tadamcz

The docs say that notation

should not be used in conjunction with kwarg format/style or type/output_type (since that would essentially be asking for conflicting outputs).

However, when output_type=str, it's not obvious to me what the conflict is. And the current behaviour is just confusing:

>>> sigfig.round(66698127389217, sigfigs=3, notation="scientific")
'6.67E13'

>>> sigfig.round(66698127389217, sigfigs=3, notation="scientific", output_type=str)
'66700000000000'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions