numeric

Uniface data type specifying a number to a maximum of 9 decimal places, including +, -, and decimal point .

numeric  ParamName : Direction

numeric  VariableName

Use

Use in params and variables blocks to define the data type of the specified parameter or variable. The data type can also be selected when defining fields, global variables, and component variables.

Description

The numeric data type supports arithmetic functions, fractions (scaling), decimal points, and positive and negative values. The number of decimals stored depends on the packing code.

Fields defined as data type float or numeric can accept a scientific notation. For example, you could enter 1.23e-5 in a field with data type float and 123e-5 in a field with data type numeric.

Uniface arithmetic expressions use string representations of the numbers as input, and return a string representation of the result, truncated at 38 digits. If the 39th digit is 5 or higher, the number is rounded upwards.

params
  numeric pPrice, pQuantity, pTotal : IN
endparams

pTotal = pPrice * pQuantity

Related Topics