Skip to content

ulp(float_info.max) #2640

@clairvoyante

Description

@clairvoyante

CPython 3.13.9

Python 3.13.9 (tags/v3.13.9:8183fa5, Oct 14 2025, 14:09:13) [MSC v.1944 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from sys import float_info
>>> from math import ulp
>>> ulp(float_info.max)
1.99584030953472e+292
>>>

Brython 3.14.0(https://brython.info/tests/console.html)

Brython 3.14.0 on Netscape 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0
Type "help", "copyright", "credits" or "license" for more information.
>>> from sys import float_info
>>> from math import ulp
>>> ulp(float_info.max)
inf
>>> 

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