Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 - Asset Console Creating an Access Definition File Guide


$MUL (multiplication)

$MUL performs multiplication, treating character strings as numeric values, and returns the arithmetic result.

Organization of this page

Syntax

return-value=$MUL(character-string,numeric-character)

Values

Status

The following table lists and describes the possible statuses:

Status

Description

NORMAL

Normal end

NODATA

Indicates one of the following:

  • An invalid value was specified in a character string or numeric value.

  • The arithmetic result is a value outside the range of representable values.

ERROR

Script execution interrupted

An invalid argument was specified, or an error other than the above occurred.

Legend:

—: Not applicable

Remarks

If a value that cannot be specified in character-string or numeric-character is encountered, or if the arithmetic result is a value outside the representable range, 0 is returned to return-value.

Example

The following example calculates 10 × 5 and outputs the results:

[SET_VALUE]
  VAL1 = 10
  VAL2 = $MUL(VAL1, 5)
 
  MSG = 'MUL:' +VAL1+ ' * 5 = ' +VAL2
  $ECHO(MSG)
Execution result:

MUL: 10 * 5 = 50