Hi,
I know this is probably something really really simple but anyway, I have spent 2 hours already without any luck.
I have the following:
Dim tra_amount = "1234"
And I want to convert to 12.34
I tried the following:
CInt(tra_amount)
String.Format("{0:c}", Double.Parse(tra_amount))
and also I tried
Convert.ToDouble(tra_amount)
I still end up with 1234 and not 12.34.
Basically I need to say that the last 2 digits will always be 2 decimals. How I can do that fast and nicely?
Thanks
I know this is probably something really really simple but anyway, I have spent 2 hours already without any luck.
I have the following:
Dim tra_amount = "1234"
And I want to convert to 12.34
I tried the following:
CInt(tra_amount)
String.Format("{0:c}", Double.Parse(tra_amount))
and also I tried
Convert.ToDouble(tra_amount)
I still end up with 1234 and not 12.34.
Basically I need to say that the last 2 digits will always be 2 decimals. How I can do that fast and nicely?
Thanks