CLinearToPf

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Methods >

CLinearToPf


 

Convert the original value into a power factor value.

 


syntax

CLinearToPf(

         value,

         min,

         max

         [,type = 5]

         [,bPercent = TRUE]

         [,precision = -1]

         )

 


Parameters

 

value

 

Type:

Number

 

Original price.

 

min

 

Type:

Number

 

The minimum of the original values.

 

max

 

Type:

Number

 

The maximum original value.

 

type

 

Type:

Number

 

Power factor type (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. If set to -1, there is no limit to the number of decimal points.

 

Return Value

 

 

Type:

Number

 

Power factor value.

 


hmtoggle_plus1Explanation

 

 


Supported


Script Action

Browser script

Calculation formula syntax

 

 


reference