Modf, Modf pow – Zilog EZ80F916 User Manual
Page 372
UM014423-0607
C Standard Library
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
352
Synopsis
#include
void *memset(void *s, int c, size_t n);
Returns
The value of s.
Example
char str[20];
char c='a';
memset(str, c, 10*sizeof(char));
modf
Breaks the argument value into integral and fractional parts, each of which has the same
sign as the argument. It stores the integral part as a
double
in the object pointed to by iptr.
Synopsis
#include
double modf(double value, double *iptr);
Returns
The signed fractional part of value.
Example
double x=1.235;
double f;
double i;
i=modf(x, &f);
pow
Computes the value of x raised to the power of y. A domain error occurs if x is zero and y
is less than or equal to zero, or if x is negative and y is not an integer. A range error can
occur.
Synopsis
#include
double pow(double x, double y);
Returns
The value of x raised to the power y.