Basic30 Language Reference
powf Function

Return x raised to the power of y .

Function powf(x As Single, y As Single) 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 a,x,y as Single

a=powf(x,y)
 

Also See: exp, log10log