Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:39:49 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Flash Screens
| | | |-+  decimal precision
Pages: 1   Go Down
Print
Author Topic: decimal precision  (Read 331 times)
0 Members and 1 Guest are viewing this topic.
rapunzel123
Active Member

Offline Offline

Posts: 11


View Profile
« on: October 14, 2011, 10:28:51 AM »

hello there,

i just designed my first basic flash screen and i have a question:

how can i change the decimal precision of some dynamic texts like the dro for the axes? at the moment i have 1.0000 showing. how can i change this to 1.00?

it would be great if someone could help me. have a nice day!
Logged
zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #1 on: October 21, 2011, 04:30:18 PM »

Hi Sorry for the delay in responce,

These are the formating parameters (for example do "+%.3f" and it would come out 0.000):

Days:Hours:Minutes:Seconds
Code:
"%D:%H:%M:%S"

(f)loating point number, (4) decimal points, (+) or -
Code:
"+%.4f"

integer, no decimals
Code:
"%i"

hex number
Code:
"%x"

Format to send the above:
Code:
fscommand( TYPE fmt DRO Number , ABOVE FORMAT )

Example:
Code:
fscommand("DROFmt1819", '%.0f');
« Last Edit: October 21, 2011, 04:35:25 PM by zealous » Logged

Regards, Jason Blake

www.Fusioncnc.com
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!