beautypg.com

Fabs, Floor, Exp fabs floor – Zilog EZ80F916 User Manual

Page 360

background image

UM014423-0607

C Standard Library

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

340

exp

Computes the exponential function of

x

. A range error occurs if the magnitude of

x

is too

large.

Synopsis

#include
double exp(double x);

Returns

The exponential value.

Example

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

fabs

Computes the absolute value of a floating-point number

x

.

Synopsis

#include
double fabs(double x);

Returns

The absolute value of x.

Example

double y=6.23;
double x;
x=fabs(y);

floor

Computes the largest integer not greater than x.

Synopsis

#include
double floor(double x);

Returns

The largest integer not greater than x, expressed as a

double

.

This manual is related to the following products: