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