Skip to main content

## percent_to_volume

# Function percent_to_volume

Source

    pub fn percent_to_volume(percent: f64) -> f64

Expand description

Convert percentage volume (0-100) to normalized (0.0-1.0)

Used when receiving volume from Jellyfin remote sessions or UI controls. Values outside the 0-100 range are clamped.

## §Arguments

- `percent` - Volume as percentage (0 to 100)

## §Returns

Normalized volume (0.0 to 1.0)

## §Example

    let normalized = percent_to_volume(75.0); // 0.75