Contains all of the business rule functions for ding math operations and conversions.
- Copyright:
- Copyright © 2022-… by Seth Hollingsead. All rights reserved
- Source:
Requires
Methods
(inner) hex2rgbConversion(inputData, inputMetaData) → {array.<integer, integer, integer>}
Converts a hexadecimal color value to an RGB color value.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | The hexadecimal value that should be converted to an RGB value. |
inputMetaData |
string | Not used for this business rule. |
Returns:
The RGB value.
- Type
- array.<integer, integer, integer>
(inner) isEven(inputData, inputMetaData) → {boolean}
Determines if the input value is an even number or not an even number. Acts as a wrapper for calling the math operations function of the same name, but this business rule processing the same from a string input.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | The value that should be evaluated to determine if it is even or not even. |
inputMetaData |
string | Not used for this business rule. |
Returns:
True or False to indicate if the value passed in is an even value or not an even value.
- Type
- boolean
(inner) isOdd(inputData, inputMetaData) → {boolean}
Determines if the input value is an odd number or not an odd number. Acts as a wrapper for calling the math operations function of the same name, but this business rule processing the same from a string input.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
string | The value that should be evaluated to determine if it is odd or not odd. |
inputMetaData |
string | Not used for this business rule. |
Returns:
True or False to indicate if the value passed in is an odd value or not an odd value.
- Type
- boolean