11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

fmodSynopsisDescriptionFast math librarybehaviorIEC 60559 mathlibrary behaviorPortability#include double fmod(double x, double y);fmod computes the floating-point remainder of x divided by y. fmod returns the valuex - ny, <strong>for</strong> some integer n such that, if y is nonzero, the result has the same sign as x andmagnitude less than the magnitude of y.If y = 0, fmod returns zero and errno is set to EDOM.fmod(0, y) is 0 <strong>for</strong> y not zero.fmod(Infinity, y) is NaN and raises the “invalid” floating-point exception.fmod(x, 0) is NaN and raises the “invalid” floating-point exception.fmod(x, Infinity) is x <strong>for</strong> x not infinite.fmod con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).fmodfSynopsisDescriptionFast math librarybehaviorIEC 60559 mathlibrary behaviorPortability#include float fmod(float x, float y);fmod computes the floating-point remainder of x divided by y. fmod returns the valuex - ny, <strong>for</strong> some integer n such that, if y is nonzero, the result has the same sign as x andmagnitude less than the magnitude of y.If y = 0, fmodf returns zero and errno is set to EDOM.fmodf(0, y) is 0 <strong>for</strong> y not zero.fmodf(Infinity, y) is NaN and raises the “invalid” floating-point exception.fmodf(x, 0) is NaN and raises the “invalid” floating-point exception.fmodf(x, Infinity) is x <strong>for</strong> x not infinite.fmodf con<strong>for</strong>ms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).frexpSynopsisDescription#include double frexp(double x, int *exp);frexp breaks a floating-point number into a normalized fraction and an integral powerof 2.Chapter 28 - Mathematics265

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!