Ankündigung

Einklappen

Sammelbestellung ETS6 Vollversionen aktiv!

Sammelbestellung für ETS6 Vollversionen (Prof., Home, Lite) mit 40% Rabatt aktiv! Infos im Forum!
Mehr anzeigen
Weniger anzeigen

Formatting numeric values

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Formatting numeric values

    Hi,

    Is it possible to format a value in a numeric variable ? i.e. the value 3:
    in a Byte variable as 03
    in a 16 bit as 0003 etc.
    I noticed that the HS is stripping the leading zero away, although they are not significant, I would like to keep the format of the output in a fixed length format.

    I've looked in existing Baustein and in the Python doc, no luck
    (Formatting a text variable would be no problem).

    Thank you for any hint.
Lädt...
X