frexp(Variable, Variable) Function

Top 

Description

Computes the mantissa and exponent of the input argument x for base 2, such that x = mantissa*2^exponent. The output argument y receives the exponent value, while the function itself returns the mantissa. The output values are given in base 10.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Function Signature

frexp(

Variable x,


Variable exponent)

 

 

Arguments

x


Description:

The value whose mantissa and exponent will be calculated.

 

 

exponent


Description:

This output argument receives the value of the exponent of x, where x = mantissa*2^exponent.

 

 

 

Return Value

Type:

number

 

 

Returns the value of the mantissa of x, where x = mantissa*2^exponent.

 

Syntax

myVariable1 = frexp(myVariable2, myVariable3);

 

 

See also

frexp