Skip to content

BUG: fmod doesn't raise FP exceptions for domain error #583

Description

@mszoek

As it says on the tin. The fmod function in libsystem_m should throw an exception for infinity or divide by zero, per the man page. It currently sets errno = EDOM (correct) and returns NaN instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglibSystemAffecting libSystem or System.framework (including all components in /usr/lib/system)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions