Hello Guest it is October 03, 2023, 05:24:55 PM

Author Topic: decimal precision  (Read 4712 times)

0 Members and 1 Guest are viewing this topic.

decimal precision
« on: October 14, 2011, 11: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!

Offline zealous

  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: decimal precision
« Reply #1 on: October 21, 2011, 05: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):

Code: [Select]
(f)loating point number, (4) decimal points, (+) or -
Code: [Select]
integer, no decimals
Code: [Select]
hex number
Code: [Select]
Format to send the above:
Code: [Select]
fscommand( TYPE fmt DRO Number , ABOVE FORMAT )
Code: [Select]
fscommand("DROFmt1819", '%.0f');
« Last Edit: October 21, 2011, 05:35:25 PM by zealous »