Mikroc, Floor, Frexp – ABL electronic PIC Microcontrollers PIC16 User Manual

Page 296: Ldexp

Advertising
background image

mikroC - C Compiler for Microchip PIC microcontrollers

mikroC

making it simple...

288

MikroElektronika: Development tools - Books - Compilers

page

Prototype

double

floor(double num);

Description

Function returns value of parameter

num

rounded down to the nearest integer.

floor

Prototype

double

frexp(double num, int *exp);

Description

Function splits a floating-point value

num

into a normalized fraction and an integral

power of 2. Return value is the normalized fraction, and the integer

exp

is stored in the

object pointed to by

exp

.

frexp

Prototype

double

ldexp(double num, int exp);

Description

Function returns the result of multiplying the floating-point number

num

by 2 raised to

the power

exp

(i.e. returns

x*2

exp

).

ldexp

Prototype

double

log(double x);

Description

Function returns the natural logarithm of

x

(i.e.

log

e

(x)

).

log

Advertising
This manual is related to the following products: