how to convert any value like amount 12,3456 to int 123456
1 Like
Hi @Aditya10989 - Try this one - convert.ToInt32(convert.ToDouble(“12,345”)).ToString in WriteLine
Regards,
AK
1 Like
Replace all comma with empty and then use the following -
strNumber.Replace(",", "")
Convert.toInt32(strNumber)
Regards,
Karthik Byggari
1 Like
Use assign: String1=“12,3456”
IntegerVar=Cint(String1)
2 Likes
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.