pjs.halfAdjust()

This API was added in version 7.14.0

The pjs.halfAdjust() API allows you half adjust or round a numeric value to a specific number of decimal positions.

Parameters
  1. Numeric value

  2. 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 = pjs.halfAdjust(num, 2);   return num; //9.88

Â