floatpower()

floatpower()

Description

Raise a floating point number to a power

Syntax

floatpower(value, exponent);

Parameters

Variable

Input

Variable

Input

value

The value to raise to a power of exponent. This is a floating point number.

exponent

Floating point number.

Returns

The result: value^exponent; this is a floating point value.

Function call example

Example of powering float type numbers
new Float: data1=10.89; new Float: data2=2.34; new Float: pow; main(){ pow = floatpower(data1, data2); //the result will be: pow = 267.0823806 while(1){ Delay(100); } }