Number.halfAdjust()
This API is deprecated as of 7.14.0.
Use pjs.halfAdjust() instead, which supports both native JS number and precise decimal values.
The Number.halfAdjust() API allows you half adjust or round a numeric value to a specific number of decimal positions.
Parameters
Numeric value
Number of decimals in result value
Return Value
Rounded value
Example
pjs.define("num", { type: 'packed decimal', length: 15, decimals: 5 });
num = 9.876;
num = Number.halfAdjust(num, 2);
return num;
//9.88
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!