Convert to any amount int

how to convert any value like amount 12,3456 to int 123456

Hi @Aditya10989 - Try this one - convert.ToInt32(convert.ToDouble(“12,345”)).ToString in WriteLine

Regards,
AK

Replace all comma with empty and then use the following -
strNumber.Replace(",", "")
Convert.toInt32(strNumber)

Regards,
Karthik Byggari

Use assign: String1=“12,3456”
IntegerVar=Cint(String1)

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.