powercalculator
v1.1.0
Published
A simple module to easily calculate wattage, amperage, voltage and resistance.
Downloads
25
Maintainers
Readme
Power Calculator (Watts,Ohms,Amps,Volts)
This is a simple module that allows for calculations of W,V,A, and Ω's.
Usage
The basic layout for all the functions is as follows. *.(Type, First Input, Secondary Input). All of the types will be listed below. Should you implement this it is recommended to have some way on your end to figure out what kind of values the end user is entering.
The amperage calculations are supported as follows.
Type 1: Please provide source Volts, Resistance
Type 2: Please provide source Watts, Voltage
Type 3: Please provide source Watts, Resistance
The wattage calculations are supported as follows.
Type 1: Please provide source Voltage, Amperage
Type 2: Please provide source Voltage, Resistance
Type 3: Please provide source Amperage, Resistance
The Resistance calculations are supported as follows.
Type 1: Please provide source Voltage, Amperage
Type 2: Please provide source Voltage, Watts
Type 3: Please provide source Watts, Amperage
The voltage calculations are supported as follows.
Type 1: Please provide source Amperage, Resistance
Type 2: Please provide source Watts, Amperage
Type 3: Please provide source Watts, Resistance
The four currently supported functions are *.amps *.watts *.resistance and *.voltage
All inputs should numbers, not strings. If a string is entered an error message will be returned.
Contact
Report any math errors or other unexpected results to Unnamed Alien#4870 on discord. If you have any requests on different calculations to add feel free to shoot me a message as well. My DM's are always open and I'd love to hear your feedback!