mstattelman / percent_calculator / 0.6.0
Overview
Basic Percent calculator. Given 3 inputs as follows: Example: What % of 579 is 403? The output would be 69.602 The 3rd input is for calculation factoring. If you have a break down of 10 factors, you want each on within the specified range. Example: What % of 579 is 403? on a 20 factor scale. The output would be 3.480
Usage
Input
The input parameters are as follows.
Parameter | Description |
---|---|
field1 | The number you want to use as the as the whole |
field2 | The number you want to find the percentage of the whole. |
field3 | The number of factors this is to be added into. |
Output
The result of the calculation given as a floating point numer
Parameter | Description |
---|---|
output | Is simply the result of the the calculation |
Examples
The following is an example #1: input = '579,403,1' Basically you want to know what % of 579 is 403, this is the only factor in the total 100% equation so it is by a factor of 1. The following is an example #2: input = '13009,8741,12' Basically you want to know what % of 13009 is 8741, this one of 12 factors in the total 100% equation so it is by a factor of 12.