Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing a decimal to a function
#1
How do I pass a decimal value (double) to a function? If I use #<variable> it removes the decimal, so 12.5 becomes 12.

I read How To Define function parameters and return type in the help section, but could not see how this can be done.

Kind Regards
Matt
#2
function double'p
#3
Function Function184
Code:
Copy      Help
double num=12.5
Function186(num);;pass double variable to function186

Function Function186
Code:
Copy      Help
function ^num2;;double variable declared or can declare  like function double'p
out num2;;send to qm output  passed variable from function 184
#4
perfect! Thanks kindly Kevin Smile

Matt


Forum Jump:


Users browsing this thread: 1 Guest(s)