...
Code Block | ||
---|---|---|
| ||
pjs.define("num", { type: 'packed decimal', length: 15, decimals: 5 }); pjs.define("c15b", { type: 'char', length: 15, initValue: ' + 9 , 8 7 6 ' }); num = 9.876; num = Number.halfAjust(num, 2); return result2; //9.88 |
...
Code Block | ||
---|---|---|
| ||
pjs.define("num", { type: 'packed decimal', length: 15, decimals: 5 }); pjs.define("c15b", { type: 'char', length: 15, initValue: ' + 9 , 8 7 6 ' }); num = 9.876; num = Number.halfAjust(num, 2); return result2; //9.88 |