Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Math In QM Help.
#1
Ok im making a calculator, and it works great pretty simple but im using qm, and i was just wondering. If there is a way better than how i do it. Here is how i do the adding part. just example:

str a = "22"
CURRENCY a1 = a
/out a1

str b = "44"
CURRENCY b1 = b

b1.add(a1)
out b1

and works great.. but is there a way for that when it its a character that is suppose to have a comma like 1,403 instead of just 1403 how would i have the macro do that.. i hope this was clear enough to under stand.
#2
str a="1,234"
a.findreplace("," "")
#3
My bad G,
I think i worded the question wrong. I ment that if the number is like 1234 how could i make it add the comma in correct place? Sorry for messing up the first time.
#4
formatting number with commas


Forum Jump:


Users browsing this thread: 1 Guest(s)