# How can I convert 'packageLoss' value to the percentage?

**URL:** <https://devforum.zoom.us/t/how-can-i-convert-packageloss-value-to-the-percentage/47945>\
**Category:** macOS\
**Created:** [April 14, 2021, 1:33pm UTC](https://devforum.zoom.us/t/how-can-i-convert-packageloss-value-to-the-percentage/47945 "2021-04-14T13:33:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [April 14, 2021, 1:33pm UTC](https://devforum.zoom.us/t/how-can-i-convert-packageloss-value-to-the-percentage/47945/1 "2021-04-14T13:33:23Z")

</div>

Hi!

What is a value that method ‘`getPackageLoss`’ return? Because it’s not equal to the percentage that Zoom Application displays.  
How can I convert this value to the percentage?

```
let statistics = ZoomSDK.shared()?.getSettingService()?.getStatisticsSetting()

let video = statistics?.getVideoASStatisticsInfo(true)
let videoPackageLoss = video?.getPackageLoss(false, max: true)

let share = statistics?.getVideoASStatisticsInfo(false)
let sharePackageLoss = share?.getPackageLoss(false, max: true)

```

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 14, 2021, 7:51pm UTC](https://devforum.zoom.us/t/how-can-i-convert-packageloss-value-to-the-percentage/47945/2 "2021-04-14T19:51:14Z")

</div>

Hi @anton.yereshchenko,

I think we will need to submit a feature request for this, but I’ll let you know for sure after we perform an investigation.

Thanks!

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [April 19, 2021, 7:14am UTC](https://devforum.zoom.us/t/how-can-i-convert-packageloss-value-to-the-percentage/47945/3 "2021-04-19T07:14:10Z")

</div>

@jon.zoom Hi,  
ok, thank you it would be super!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [April 20, 2021, 4:51pm UTC](https://devforum.zoom.us/t/how-can-i-convert-packageloss-value-to-the-percentage/47945/4 "2021-04-20T16:51:05Z")

</div>

Hi @anton.yereshchenko,

It seems that a feature request will be necessary for this based on our investigation. I will let you know as soon as we have any updates on the feature request.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 21, 2021, 2:51am UTC](https://devforum.zoom.us/t/how-can-i-convert-packageloss-value-to-the-percentage/47945/5 "2021-05-21T02:51:23Z")

</div>

Closed on May 21, 2021, 2:51am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
