Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Currency
#1
how do i use format to get my currency value ek1 (12.75) ?

pf_db_test2
Code:
Copy      Help
class PFDB
,int m1 m2 m3 m4 m5
,CURRENCY ek1
PFDB+ d
d.m1=10;d.m2=100
d.ek1=12.75
str values.format("'Callaway XX4',%i,%i,%d" d.m1 d.m2 d.ek1)
out values

thanks
pi
#2
CURRENCY cannot be used with most QM functions. Assign to double and use format %.2f.
#3
another question, is there a shorter way to declare variables ?

Code:
Copy      Help
class PFDB
,double'ek1 double'ek2 double'ek3
pi
#4
double a b c

is not supported but can be used

^a ^b ^c

or

^a[3]


Forum Jump:


Users browsing this thread: 1 Guest(s)