Appearance
Home > resol-vbus-core > conversions > convertPower
conversions.convertPower() function
Converts power values between different units
Signature:
typescript
export declare function convertPower(currentValue: number, currentUnit: PowerUnit, targetUnit: PowerUnit): ConversionResult;
Parameters
Parameter | Type | Description |
---|---|---|
currentValue | number | The value to convert |
currentUnit | The current unit | |
targetUnit | The target unit |
The conversion result