Announcement

Collapse
No announcement yet.

formating output string or number

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • formating output string or number

    Hello all,



    I am newbie here, and i discover 4DGL language,

    My project is to use a µLCD-32-PT-GFX in front-end for driving a VFO generator using a Si570 (DSPLL). My problem is 4DGL have not type variables such as long (32 bits) and for display frequency i do split frequency number in three zones, eg:

    first: 000 for Mhz

    second: 000 for Khz

    third: 000 for Hertz

    the display does be : 000.000000

    Mhz Khz Hz

    issue is for display a value < 100 eg:010 when i use print, "10" is display and not "010"

    My question, it is possible to format output eg 010 for a 10 value ? and how ?

    Thanks for you help, please sorry for my bad english

    regards,

    Jacques

  • #2


    Try adding [DEC3Z], such as
    print([DEC3Z] 10);
    which should print "010" ........
    _______________
    Best Regards,
    Howard

    Comment


    • #3


      Hi 4DSysFan,



      Many thank's, I enjoy asap.

      Regards,



      Jacques

      Comment

      Working...
      X