Addmg(); Compare() - IBM Prerequisite Scanner User Manual

Table of Contents

Advertisement

Syntax
changeMG val
Input parameters
String $val
Return values
Integer 1
String printf "%.0fM%s",mm[1]*1024,mm[2];
String printf "%.2fG%s",mm[1],mm[2];

AddMG()

Checks whether the input parameters are in MBs or GBs and adds the parameters.
Purpose
This function checks first that the function receives input parameters. If receives an
input parameters, it determines whether the value is in MBs or GBs and then adds
the values.
Syntax
AddMG val1 val2
Input parameters
String $val1
String $val2
Return values
Integer 1
String val

compare()

Parses the input parameters that represent the actual and expected values for a
prerequisite property and compares them to determine whether the first value
(real) is less than the second value (expected).
136
Prerequisite Scanner: User's Guide
Contains the value for disk space or memory in MBs or GBs.
Returns 1 if the function does not receive an input parameter.
Returns the value in MBs.
Returns the value in GBs.
Contains the value for disk space or memory in MBs or GBs to be added to the
other input parameter.
Contains the value for disk space or memory in MBs or GBs to be added to the
other input parameter.
Returns 1 if the function does not receive two input parameters.
Returns the added values in MBs or GBs.

Advertisement

Table of Contents
loading

Table of Contents