Question:
I have a string,
1 2 |
$string = "2,55" |
How to convert this string to decimal?
Answer:
In short –
1 2 |
[decimal]$string.Replace(",", ".") |
I have a string,
1 2 |
$string = "2,55" |
How to convert this string to decimal?
In short –
1 2 |
[decimal]$string.Replace(",", ".") |