base10#

Purpose#

Breaks number into a number of the form #.####... and a power of 10.

Format#

{ M, P } = base10(x)#
Parameters:

x (scalar) – number to break down.

Returns:
  • M (scalar) – in the range -10 < M < 10.

  • P – integer power such that:

\[M*10^P = x\]

Examples#

{ b, e } = base10(4500);

After the code above:

b = 4.5  e = 3

and

b*10^e = 4.5*10^3 = 4500

Source#

base10.src