# AddLeadingZero

## `AddLeadingZero` (FUN)

FUNCTION AddLeadingZero : BOOL

Use this function to add a leading zero to numeric values < 10.\
This is mainly used for two digit date variables.\
\
Usage:

* Pass the address to the variable which holds the digit value puiInput.
* Write the result as a string to the referenced value psResult.

–> If the value is >= 10 it retuns the value as it is as a string.\
–> If the value is < 10 it adds a leading zero to the returned result as a string.<br>

InOut:

| Scope  | Name             | Type                 |
| ------ | ---------------- | -------------------- |
| Return | `AddLeadingZero` | `BOOL`               |
| Input  | `puiInput`       | POINTER TO UINT      |
| Input  | `psResult`       | POINTER TO STRING(2) |
