Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: epetrouHello,
i have encountered a problem with my limited knowledge..I am trying to convert a string to integer so i can do some math calculations with other columns.
I have the following sample static data :
node:Static_Data
bretype:core::Static Data
editor:sortkey=54f047a0449e700b
output:@40fe6c55598828e5/=
prop:StaticData=<<EOX
C30_POS Code,bonus9
POS18446,"0"
POS13264,"32,2"
POS2572,"20,48"
POS13264,"20,48"
POS2572,"48,76"
POS13264,"40"
POS18446,"0"
EOX
editor:XY=200,460
end:Static_Data
and i am trying to convert them to integer using a simple code
b9=bonus9.int()
but i get an error message "Cant convert '32,2' to integer"
i have been playing around with format but i cant find a working solution. Can you provide your always valuable input ?