Hello!
I have to convert string “0.003” to int/double 0.003. How can i do it? Convert function is rounding the result.
Thank you!
Hello!
I have to convert string “0.003” to int/double 0.003. How can i do it? Convert function is rounding the result.
Thank you!
for integer same as double @Andrei_Croitoru
Cint(Value)
Integer.Parse(Value)
Where value should without decimal
Regards
Sudharsan
Have a summary on the 3 main approaches
CDbl("0.003")
0.003
Convert.ToDouble("0.003")
0.003
Double.Parse("0.003")
0.003
As an Integer cannot have fractions, so it will be less suitable for the parsing
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.