in reply to Re: Determining the minimum representable increment/decrement possible?
in thread Determining the minimum representable increment/decrement possible?

I'm probably being thick here, but where does nextafter() come from?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice. Not understood.
  • Comment on Re^2: Determining the minimum representable increment/decrement possible?

Replies are listed 'Best First'.
Re^3: Determining the minimum representable increment/decrement possible?
by syphilis (Bishop) on Jun 16, 2016 at 14:03 UTC
    ... where does nextafter() come from?

    As pryrt noted, it's in math.h - which perl.h already (indirectly) includes.

    With my MS compiler, I found matches for the string "nextafter" in:
    C:\_64\Platform_SDK\Include\crt\float.h C:\_64\Platform_SDK\Include\crt\fpieee.h C:\_64\Platform_SDK\Include\crt\math.h C:\_64\Platform_SDK\src\crt\float.h C:\_64\Platform_SDK\src\crt\fpieee.h
    Cheers,
    Rob
Re^3: Determining the minimum representable increment/decrement possible?
by pryrt (Monsignor) on Jun 16, 2016 at 13:43 UTC

    it looks like it's in math.h -- I didn't know about it until syphilis's post, either... I love how much I learn here. :-)

Re^3: Determining the minimum representable increment/decrement possible?
by fullermd (Priest) on Jul 05, 2016 at 07:29 UTC

    For completeness, nextafter() is specified as part of math.h in C99 (section 7.12.11.3 in the N1256 draft).