Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: thespindoctor on September 29, 2011, 09:26:51 AM
-
How dose one format a double number for printing to a file to get
xx.0000 instead of xx.000000000000 in CBasic?
Thanks
Keith
-
Tap= 1.11111111111111
Tap= Format(tap,"00.0000") ' Formatting the Variable
NOW Tap=1.1111
You can also format on the fly
as Msgbox("Tap= ") & Format("Tap,"00.0000")
The message will say Tap= 1.1111
That is one way, (;-) TP
-
Thanks TP, that was an easy one! Now I will have to find a hard one for you... >:D
Keith
-
You are lucky I am working on new screens and cool new plasma functions. I have to use format a lot to make it all look neat.
Just wait until I don't work on them for a short while, I will forget half of it and THEN you can stump me easy enough.
BUT I did create some neat new manuals to reference. (;-)
(;-) TP
-
I appreciate your help and will look forward to seeing the manuals!
Keith
-
AH the Manuals(;-) Those are the secrets of the Jedi Macherteer.
(;-) TP