Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
losing decimal places while converting str to in
#1
when i convert a str to an int i lose all teh decimal places...any help?

example:
Macro
Code:
Copy      Help
str s = "0.1"
int t=val(s)
out t
;Outputs "0"

I need to convert it and let it stay at 0.1
thanks
#2
Code:
Copy      Help
str s = "0.1"
double t=val(s 2)
out t
#3
Perfect! Thanks i dont know why i didnt think of that!


Forum Jump:


Users browsing this thread: 1 Guest(s)