Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Output double to dialog edit control
#2
%%.3G
read more in qm help or online
http://www.quickmacros.com/help/Language...TRING.html



Macro Macro3
Code:
Copy      Help
double d=3.1415926535897932384626433832795
out
out F"{d%%.3G}"
out F"{d%%.5G}"
out F"{d%%.10G}"
out F"{d%%.15G}"
d=113.1415926535897932384626433832795
out F"{d%%.3G}"
out F"{d%%.5G}"
out F"{d%%.10G}"
out F"{d%%.15G}"
;; G number will depend on numeric size and how mnay decimal places you will need


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)