convert Double2Int(a, b)
|
Group |
Converts a floating-point number (double) a into an integer. Parameter b specifies how many decimal places are to be used for this (see examples below).
Description of Parameters
|
Parameter |
Description |
|
a |
Value. |
|
b |
(optional) Number of decimal places to be used. Default: 0 |
Examples
|
Parameter a |
Parameter b |
Result |
|
1.75 |
|
1 |
|
1.75 |
1 |
17 |
|
1.75 |
2 |
175 |
|
1.75 |
3 |
1750 |