decimal
Syntax:
Value
String
decimal
(
String
str,
Integer
positions)
Description:
Sets the number of digits displayed after the decimal point of a numerical string
str
to
positions
.
Examples:
($a1:$a5) = decimal($self, 3)
Before:
A
B
C
1
1
4
2
-3
3
3.1415926
32
4
1000
-7.2
5
1.234
18
6
16
41
After:
A
B
C
1
1.000
4
2
-3.000
3
3.141
32
4
1000.000
-7.2
5
1.234
18
6
16
41
($b1:$d10) = decimal($a, 2)