MANTISSA()

Evaluate the mantissa of a floating point number

Syntax

MANTISSA( <nFloatingPointNumber> ) --> nMantissa

Arguments

<nFloatingPointNumber> Designate any Harbour number.

Returns

MANTISSA() returns the mantissa of the <nFloatingPointNumber> number.

Description

This function supplements EXPONENT() to return the mantissa of the <nFloatingPointNumber> number.

Note: The mantissa value can be 0 or in the range of 1 to 2.

The following calculation reproduces the original value:

MANTISSA(<nFloatingPointNumber>)* 2^EXPONENT(<nFloatingPointNumber>) = <nFloatingPointNumber>

TODO: add documentation

Status

Started

Compliance

MANTISSA() is compatible with CT3's MANTISSA().

Platforms

All

Files

Source is exponent.c, library is libct.

See Also