MantissaExponent

MantissaExponent[x]

gives a list containing the mantissa and exponent of a number x.

MantissaExponent[x,b]

gives the baseb mantissa and exponent of x.

Details

  • The mantissa always lies between and or and .
  • MantissaExponent works with exact as well as approximate numeric quantities.

Examples

open allclose all

Basic Examples  (1)

Scope  (4)

Integers:

Base 2:

Exact numeric quantities:

The precision of the mantissa will depend on the precision of the inputs:

Properties & Relations  (3)

The fundamental identity :

MantissaExponent is related to RealExponent:

If r=RealExponent[x,b] then e=TemplateBox[{r}, Floor]+1 and :

RealDigits gives the mantissa in terms of digits:

The mantissa is given by :

This is equal to the values given by MantissaExponent:

Introduced in 1991
 (2.0)
 |
Updated in 1999
 (4.0)
2000
 (4.1)
2002
 (4.2)