Skip to content

[Ch2] The machine epsilon of 'float32' vs 'float64' in Python #4

Description

@heejour

The difference of machine epsilon between 'float64' and 'float32'.

float64

print(np.finfo(float).eps)
# 2.22044604925e-16

float32

print(np.finfo(np.float32).eps)
# 1.19209e-07

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