number.toZeroFillString()
The number.toZeroFillString() method allows you to convert a number to a '0' left-padded string with a specified length.
Parameters
length
Example:
pjs.define("num", { type: 'decimal', length: 7, decimals: 2, initValue: 12345.14 });
pjs.define("result", { type: 'char', length: 52, varying: true });
result = num.toZeroFillString(10);
return result;
//"0012345.14"
Some documentation pages have recently moved to a new section: Profound AppDev. If you are having trouble finding specific pages, try the documentation search capability or reach out to our Support team!