Basic30 Language Reference
ldexpf Function

Return x multiplied by 2 to the power of ex  IE:  x*(2^ex) .

Function ldexpf(x As Single,ex As Integer) As Single

Requirements

  1. This function requires the link time library "libm.a".  It is a free download from the Microchip website.
  2. The flie <libs/math.bas> must be included in the Basic source to use this function.

Examples

#include <libs/math.bas>

Dim y,x as Single
Dim i as Integer

x=ldexpf(y,i)