I'm trying to convert a string value to a real value, and it works fine except for the number keeps rounding to the nearest whole number. Its a huge problem for my map :(
Remove the decimal from your string value. Convert to real then divide by 10^(# of decimal places you want.) For example, the value you are looking for is 2.34. In the string variable, it would be stored as 234. Set the real variable equal to the string so it's 234. Then divide the real by 100 (or 10^2.)
I'm trying to convert a string value to a real value, and it works fine except for the number keeps rounding to the nearest whole number. Its a huge problem for my map :(
Remove the decimal from your string value. Convert to real then divide by 10^(# of decimal places you want.) For example, the value you are looking for is 2.34. In the string variable, it would be stored as 234. Set the real variable equal to the string so it's 234. Then divide the real by 100 (or 10^2.)
@BasharTeg: Go
Actually, all I needed to do was change any decimal place to 1 decimal place. But thanks for trying :)