<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioHardwareControl/convertToScalar(fromDecibels:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "s:9CoreAudio0B15HardwareControlC15convertToScalar12fromDecibelsS2f_tKF"
  },
  "title" : "convertToScalar(fromDecibels:)"
}
-->

# convertToScalar(fromDecibels:)

Convert a volume dB value to the equivalent scalar value.

```
func convertToScalar(fromDecibels decibels: Float) throws -> Float
```

## Parameters

`decibels`

A Float representing the volume dB value to convert.

## Return Value

A Float representing the equivalent scalar value.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)