Skip to content

Conflicting inputs should raise an exception #13

@tadamcz

Description

@tadamcz

IMO, incompatible outputs should raise an exception. Right now:

  1. it fails silently
  2. the behaviour depends on the order of the kwargs (!)
>>> sigfig.round(12345678, sigfigs=3, notation="scientific", output_type=float)
12300000.0

>>> sigfig.round(12345678, sigfigs=3, output_type=float, notation="scientific")
'1.23E7'

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