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 10 Current »

Content Freeze

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

The Number.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 = Number.halfAdjust(num, 2);
 
return num;
//9.88
  • No labels