Skip to content

Incompatible (wrt CPython) formatting for format(mpmath.mpf(9.995074823339339e-05), '.0g') #880

@skirpichev

Description

@skirpichev
>>> format(9.995074823339339e-05, '.0g')
'0.0001'
>>> format(mpmath.mpf(9.995074823339339e-05), '.0g')
'1e-04'

see https://github.com/mpmath/mpmath/actions/runs/11398339589/job/31715210493

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions