Number Category Functions
Functions in the following category can be used to execute business logic using numeric values. For example, you can use the functions to convert numbers to string or retrieve a maximum number from a number list.
| Rule ID | Name | Long Description |
|---|---|---|
|
SCC_RULE_ID_20131119134507 |
StringToNumber |
Convert a string to a number. |
|
SCC_RULE_ID_20131120095322 |
Max |
Retrieves the maximum value from a list of numbers. |
|
SCC_RULE_ID_20131120095954 |
Min |
Retrieves the minimum value from a list of numbers. |
Using Number Category Functions
-
Using Min and Max
-
Description: When using delivered statements Min or Max in the Number Category, you can retrieve a minimum or maximum Mark, respectively. A minimum or maximum number can be retrieved from a Variable of Type List which contains all numeric values or from Lists of type Data Set. In this case the minimum or maximum can be retrieved from the property of type number.
-
How to Use: You create a Data Set List which contains a list of courses with accompanying Course Mark. From this list, you want to retrieve the Course with the highest Course Mark. The function Max can be used to retrieve the Maximum result from the list.
-
-
Using StringToNumber
-
Description: This function converts a numeric string into a true number. Because a numeric value obtained from a property of type string can only be assigned to a Variable of type String, it may be necessary to convert the numeric string to a number before it can be used.
-
How to Use: For example, a value, 77, is retrieved from a property of type string. You would like to use this value in a calculation. The Math function Add only accepts numeric values or values from a numeric variable as input. In order to use the function Add, the variable which contains value 77 must first be converted into a true number. This can be done with function StringToNumber.
-