beautypg.com

Ceil, Ceil cos – Zilog EZ80F916 User Manual

Page 358

background image

UM014423-0607

C Standard Library

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

338

Example

char *buf;
buf = (char*)calloc(40, sizeof(char));
if (buf != NULL)
/*success*/
else
/*fail*/

ceil

Computes the smallest integer not less than x.

Synopsis

#include
double ceil(double x);

Returns

The smallest integer not less than x, expressed as a

double

.

Example

double y=1.45;
double x;
x=ceil(y);

cos

Computes the cosine of x (measured in radians). A large magnitude argument can yield a
result with little or no significance.

Synopsis

#include
double cos(double x);

Returns

The cosine value.

Example

double y=.1234;
double x;
x=cos(y);

This manual is related to the following products: