---
title: "convertToDecibels(fromScalar:)"
framework: Core Audio
role: symbol
role_heading: Instance Method
platforms: [macOS 15.0+]
path: "coreaudio/audiohardwarecontrol/converttodecibels(fromscalar:)"
---

# convertToDecibels(fromScalar:)

Convert a volume scalar value to the equivalent dB value.

## Declaration

```swift
func convertToDecibels(fromScalar scalar: Float) throws -> Float
```

## Parameters

- `scalar`: A Float representing the volume scalar value to convert.

## Return Value

Return Value A Float representing the equivalent dB value.
