|
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.
|
Explanation
Converts the original value to a power factor value. If it is an array, it returns the power factor converted values of all elements as an array.
|
Supported
reference
CBool
CNum
CStr
CBit
CTime
CScript
CScriptTo
CNumStr (NS)
CTimeStr (TS)
CTimeSpanStr
CDurationStr
CNumToHex
CNumToOct
CNumToBin
CNumToExp
CHexToNum
COctToNum
CBinToNum
CNumToComma
CCommaToNum
CLinearToPf
CPfToLinear
CTable
CValidTable
|