Functions: Leading_Zeros Function - Wynntils/Wynntils GitHub Wiki

Leading_Zeros function

Aliases

None

Description

Returns the value with a fixed length.

Arguments

This function has 2 required arguments.

  • value (Integer) → The number to add leading zeros to.
  • length (Integer) → The length of the number after adding zeros.

Schematics

LEADING_ZEROS(<value>;<length>) → (String)

Example

LEADING_ZEROS(15; 7)  "0000015"
⚠️ **GitHub.com Fallback** ⚠️