Official | HULFT IoT EdgeStreaming Mapper Reference, 2nd Edition, (April 1, 2022):
Zero padding
Logic name
Zero padding
Function
This logic pads the input value with zeros up to the specified number of digits and outputs the result as a string.
Data type
|
Location |
Type |
|---|---|
|
First input handler |
Numeric |
|
Logic output |
String |
Property
|
Category |
Property |
Description |
|---|---|---|
|
Required |
Size |
Specify the number of digits for zero padding. |
|
Comment |
Comment |
It does not affect the conversion processing. |
Notes
If you specify a floating point value as the input data, all digits after the decimal point are truncated, and only the integer part undergoes zero padding.
Example of logic use
Mapping definition
Logic settings and processing result
This logic pads the input data with zeros to the specified number of digits and then outputs it.
Property settings
|
Property |
Setting Value |
|---|---|
|
Size |
5 |
Input data
|
123 |
Output data
|
00123 |
Official | HULFT IoT EdgeStreaming Mapper Reference, 2nd Edition, (April 1, 2022):