Can I use the two variables newVar and strVar as int32?
No. First, 50.78 is not integer. So we need to use Double or Decimal instead of Int32.
Then, we need to convert it from string to Double or Decimal as the following.
doubleVar = Double.Parse(newVar)
thanks to you it worked
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.