Modf, modff, Pow, powf, Modf, modff pow, powf – Zilog ZUSBOPTS User Manual
Page 457: Synopsis, Returns, Example

UM017105-0511
Standard Functions
Zilog Developer Studio II – ZNEO™
User Manual
429
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, modff
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
(
modf
) or
float
(
modff
) in
the object pointed to by iptr.
Synopsis
#include
double modf(double value, double *iptr);
float modff(float value, float *iptr);
Returns
The signed fractional part of value.
Example
double x=1.235;
double f;
double i;
i=modf(x, &f);
pow, powf
Computes the 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);
float powf(float x, float y);