Frexp() splits a floating number a into mantissa and exponent. The exponent is stored in e. e may therefore not be an expression, but instead it must be a single byte variable in memory (SRAM). The return value is the mantissa of the floating value a.

Syntax: single = Frexp( a as Single, byRef e as word )


  dim e as word
  dim a as single
  a = 100
  a = Frexp(a,e)  ' output: 0.78125 and e: 7

See also: Flexp()