|
Move decimal point and truncate.
syntax
Math.Round(
val,
decimalNum,
roundType,
decimalMove,
)
Parameters
val
|
|
Type:
|
Number
|
|
The source value. Arrays can be specified.
|
decimalNum
|
|
Type:
|
Number
|
|
Number of decimal places. If -1 is specified, the number of decimal places will not be adjusted. Arrays can be specified.
|
roundType
|
|
Type:
|
Number
|
|
How to adjust the number of decimal points. Array can be specified.
0 - rounded
1 - Truncate
2 - Round up
|
decimalMove
|
|
Type:
|
Number
|
|
Number of decimal places to move. If 0 is specified, there is no movement. Arrays can be specified.
|
Return Value
|
|
Type:
|
Number
|
|
The result value.
|
Explanation
Shifts the decimal point and truncates.
|
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
|