convert Int2Double()
This function converts the integer number a into a floating-point number (double). Parameter b specifies how many decimal places are to be used for this (see examples below) .
Parameters
Parameter |
Description |
a |
Value. |
b |
(optional) Number of decimal places. Default: 0 |
Examples
Parameter a |
Parameter b |
Result |
175 |
|
175 |
175 |
1 |
17.5 |
175 |
2 |
1.75 |
175 |
3 |
0.175 |