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 5 Next »

Returns the number of decimals within a variable or constant.

Parameters:
  1. Variable or constant
Example:
  pjs.define("testnum", { type: 'packed decimal', length: 7, decimals: 3 });
  pjs.define("result", { type: 'integer', length: 5, decimals: 0 });

  testnum = 236.56;

  result = pjs.decimalPositions(testnum);

RPG Equivalent 

%DECPOS()

  • No labels