Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove text/find/replace ect
#4
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.
Code:
Copy      Help
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 Smile


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)