## DuNumber

Number related methods

View Source Duik_api_fordoc.jsxinc, line 7376

# Methods

#### # static toString(num, numDigits, baseopt) → {string}

Converts a number to a string, adding optionnal leading zeroes

##### Parameters:

Name | Type | Attributes | Default | Description
--- | --- | --- | --- | ---
`num` | `Number` |  |  | The number
`numDigits` | `int` |  |  | The number of digits in the string. Adds leading zeroes
`base` | `int` | <optional> | 10 | The conversion base

View Source Duik_api_fordoc.jsxinc, line 7385

Returns:
The number as a string
Type: `string`