|
Perform engineering value conversion.
syntax
Math.LinearTrans(
bForward,
val,
min1,
max1,
min2,
max2
[,bLimitmin = FALSE]
[,bLimitmax = FALSE]
)
Parameters
bForward
|
|
Type:
|
Boolean
|
|
TRUE - Converts raw values to engineering values.
FALSE - Converts from engineering to raw values.
|
val
|
|
Type:
|
Number
|
|
Original price.
|
min1
|
|
Type:
|
Number
|
|
The minimum of the raw values.
|
max1
|
|
Type:
|
Number
|
|
The maximum raw value.
|
min2
|
|
Type:
|
Number
|
|
Minimum engineering value.
|
max2
|
|
Type:
|
Number
|
|
Maximum engineering value.
|
bLimitmin
|
|
Type:
|
Boolean
|
|
When TRUE, the value will not be set smaller than the minimum value.
|
bLimitmax
|
|
Type:
|
Boolean
|
|
When TRUE, the value will not exceed the maximum value.
|
Return Value
|
|
Type:
|
Number
|
|
The result value.
|
Explanation
Performs engineering value conversion. For arrays, returns the engineering value converted values of all elements as an array.
|
Supported
reference
Math.Abs
Math.Ceil
Math.Floor
Math.Ave
Math.Sum
Math.Max
Math.Min
Math.Median
Math.Mode
Math.Random
Math.Log
Math.Log10
Math.Pow
Math.Sqrt
Math.Nthroots
Math.AddingUp
Math.StDev
Math.Correl
Math.LineSt
Math.Sin
Math.Cos
Math.Tan
Math.Asin
Math.Acos
Math.Atan
Math.Exp
Math.LinearTrans (Math.LT)
Math.PowerFactorTrans (Math.PT)
Math.Summary
Math.Round
|