<< Click to Display Table of Contents > 

SAMLight Manual > Entities (Objects) > Serial Number > Serial Number Formats

Serial Number Formats
Previous pageReturn to chapter overviewNext page

For the serial numbers the format description is similar to that used in the C-language:

%[flags] [width] [.precision] [optional parameter] type

flags: 0        shows leading zeros

width: Defines the total width of the number including the decimal point. This has only an effect if leading zeros is defined and the width is defined bigger than the width of serial number plus decimal point plus precision, so that leading zeros appear.

precision: Digits after the decimal point.

optional parameter: L or l. L will restrict the serial number to show only 'width' digits and will show leading zeros.  l will do the same but will not show leading zeros.

type: f double values

Format examples:

Example

Format

Description

10.000  

%6.3f

3 digits after the decimal point

10  

%6.0f

0 digits after the decimal point

000010  

%06.0f

show leading zeros

012

%03.0Lf

restrict to 3 digits and show leading zeros

12

%03.0lf

restrict to 3 digits and do not show leading zeros

Figure 246: Formating examples

note

Format code and text can be entered simultaneously.

The encoding will only work if Custom Format is selected inside the SerialNumber property page.