# 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 of the variable that holds the digit value puiInput.
* Write the result as a string to the referenced value psResult.

–> If the value is >= 10, it returns the value 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) |
