Math.PowerFactorTrans (Math.PT)

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Methods >

Math.PowerFactorTrans (Math.PT)


 

Performs power factor conversion.

 


syntax

Math.PowerFactorTrans(

         bForward,

         val,

         min,

         max

         [,type = 5]

         [,bPercent = TRUE]

         [,precision = -1]

         )

 


Parameters

 

bForward

 

Type:

Boolean

 

TRUE - Convert raw value to power factor.

FALSE - Converts power factor to raw value.

 

val

 

Type:

Number

 

Original price.

 

min

 

Type:

Number

 

The minimum of the raw values.

 

max

 

Type:

Number

 

The maximum raw value.

 

type

 

Type:

Number

 

Conversion method (specify 0 or 5).

0: Power factor expressed as -0 to 1 to +0

5: Power factor expressed as -0.5 to 1 to +0.5

 

bPercent

 

Type:

Boolean

 

When TRUE, the power factor is expressed as a percentage.

 

precision

 

Type:

Number

 

Number of decimal points. When set to -1, the number of decimal points is not limited. Only valid when bForward is set to T.

 

Return Value

 

 

Type:

Number

 

The result value.

 


hmtoggle_plus1Explanation

 

hmtoggle_plus1Example

 


Supported


Script Action

Browser script

Calculation Expression Syntax

 

 


reference