02-17-2012, 01:49 PM
Ok now that i have the value extracted and formated i need to be able to add or substract/ devide/multiply ect. I cant figure out why when i want to set variable to be same as string with the number i get a bunch of other numbers that don't make sence to me.
How can i take the value i got ( 2540977.12) and work with it + - / * while keeping the decimals and do plain old calculation?
Thank's
str s.getfile("C:\folder1\extracted number.txt") ;; value is 2540977.12
out s
int i
i=s
out i ;; i get some numbers that have nothing to do with what i have on file and they are not with decimals in the end (51029776)
int a
a=i+5.45
out a ;; new value i need to create -he takes the 51029776 and adds just 5 without decimal values
a is now 51029781
How can i take the value i got ( 2540977.12) and work with it + - / * while keeping the decimals and do plain old calculation?
Thank's