Skip to content

math: Modf error with negative zero #12867

@ssilverman

Description

@ssilverman

Since math.Modf(-0.333) produces -0 and -0.333, shouldn't calling math.Modf on negative zero produce -0 and -0?

Example code:
http://play.golang.org/p/pJMBWAXiYa

I create negative zero via: 1 / math.Inf(-1)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions