Skip to content

exp(1) != e #3370

@StefanKarpinski

Description

@StefanKarpinski

See comment in 77a8888. Regardless of syntax, it seems problematic that exp(1) does not quite yield Euler's constant to all digits:

julia> exp(1) == e
false

julia> exp(1)
2.7182818284590455

julia> float(e)
2.718281828459045

julia> bits(exp(1))
"0100000000000101101111110000101010001011000101000101011101101010"

julia> bits(float(e))
"0100000000000101101111110000101010001011000101000101011101101001"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions