pjs.editWord()
Â
Convert a number to characters using an edit word.
Parameters
Number
Edit word
Example
Â
pjs.define("c1", { type: 'char', length: 52, varying: true });
pjs.define("d1", { type: 'decimal', length: 9, decimals: 2, initValue: 1234567.85 });
const editwd = '$ , , &Dollars&and& &Cents';
output = 'The amount is ' + pjs.editWord(num, editwd);
return output;
//The amount is $1,234,567 Dollars and 85 Cents
Â
RPG EquivalentÂ
%EDITW()