-
Notifications
You must be signed in to change notification settings - Fork 0
BurnSoftMath.h
BurnSoft edited this page Aug 13, 2017
·
2 revisions
The BurnSoftUniversal/BurnSoftMath.h class is the section that will contain any sort of math related functions, everything from add, delete, subtract, multiply, get average, etc. Some of the functions are being passed strings and returning it as a string or a number. This was also because of some of the data that might get passed in from the database.
NOTE: This Documentation is also included in the Header File
| Name | Description>/th> |
|---|---|
| getPricePerItem | Pass the price and qty to have it broken down to Price per item returns a double with two decimal |
| multiplyTwoItems | Pass two values to have them multiplied |
| multiplyTwoItems2DecDouble | Pass two values to have them multiplied returns a double with two decimal |
| multiplyTwoItemsFullDouble | Pass two values to have them multiplied returns as full double value |
| AddTwoItemsAsInteger | Pass two string values to return as integer. |
| AddTwoItemsAsDouble | Pass Two string values to return as double |
| convertDoubleToString | Convert a Double Value to a string with two decimals |
| getPricePerItemString | Pass the price and qty to have it broken down to Price per item returns a string with two decimal |
| multiplyTwoItemsString | Pass two string values to multiply and return the value as string |
| multiplyTwoItems2DecDoubleString | Pass two string values to multiply and return the value as stwo decimal point double |
| multiplyTwoItemsFullDoubleString | Pass two string values to multiply and return the value as full double |
| AddTwoItemsAsIntegerString | Pass two string values to be added as integers and return the result as a string |
| AddTwoItemsAsDoubleString | Pass two string values to be added as doubles and return the result as a string |
| averageOf | Get the Average of a set of numbers in an array |
| getStandardDeviation | Get the standard deviation of an array of numbers |