Skip to content

Storing pi in a long double? #9698

Open
@eric-wieser

Description

@eric-wieser

Is there any way to get hold of a long double pi to the maximum possible precision? The following only gets one at the precision of double:

p = np.longdouble(np.pi)

One option would be to change the definitions of np.pi to longdouble, but then that contaminates all code that uses them into also using longdouble.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions