Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Current »

Content Freeze

As of July 25th, 2023, there is a content freeze on this page.

The number.toZeroFillString() method allows you to convert a number to a '0' left-padded string with a specified length.

Parameters
  1. 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"
 


  • No labels