# Progress bar value

**URL:** <https://forum.inductiveautomation.com/t/progress-bar-value/98611>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [November 14, 2024, 2:11pm UTC](https://forum.inductiveautomation.com/t/progress-bar-value/98611 "2024-11-14T14:11:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mitchell\_Gerber](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@Mitchell\_Gerber](https://forum.inductiveautomation.com/u/Mitchell_Gerber)\
**Post date:** [November 14, 2024, 2:11pm UTC](https://forum.inductiveautomation.com/t/progress-bar-value/98611/1 "2024-11-14T14:11:25Z")

</div>

Is there a way to make the progress bar value read as a float instead of an integer? I have had no luck so far.

Thanks

---

<div class="post-metadata">

**Author:** ![Samuel\_Sueur](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Samuel\_Sueur](https://forum.inductiveautomation.com/u/Samuel_Sueur)\
**Post date:** [November 14, 2024, 2:14pm UTC](https://forum.inductiveautomation.com/t/progress-bar-value/98611/2 "2024-11-14T14:14:14Z")

</div>

Hi, is this perspective ?

If so, this seems to work on my end...  
The decimal separator might be different for you.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/f/ef6408b4b261c7a9ca8196ad9f56010113a803ca.png)

---

<div class="post-metadata">

**Author:** ![Mitchell\_Gerber](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@Mitchell\_Gerber](https://forum.inductiveautomation.com/u/Mitchell_Gerber)\
**Post date:** [November 14, 2024, 2:21pm UTC](https://forum.inductiveautomation.com/t/progress-bar-value/98611/3 "2024-11-14T14:21:05Z")

</div>

This is in vision. I apologize for any confusion.

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [November 14, 2024, 2:50pm UTC](https://forum.inductiveautomation.com/t/progress-bar-value/98611/5 "2024-11-14T14:50:19Z")

</div>

Not with the progress bar, but you can use the level indicator instead.  
Set it's orientation to left right and the value format to #.0  
Adjust colors etc.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [November 14, 2024, 3:20pm UTC](https://forum.inductiveautomation.com/t/progress-bar-value/98611/6 "2024-11-14T15:20:16Z")

</div>

It can be done by using the property change event handler to directly set the string property when the progress bar's value property changes.

**Example:**

```python
# Written for the progress bar's propertyChange event handler
# Any time the progress bar's value changes... 
if event.propertyName == 'value':
	
	# Using a respective min/max of 0/1000
	# Convert the value to a string that represents a 0.0 to 100.0 percentage
	# ...and assign it to the string property
	event.source.string = unicode(event.newValue * .1) + '%'

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/a/2a058b1764d7c50f910ee2bdbd32294da17de98c.png)

**Result:**  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/f/0ff5cd2435272110f44063e0f47cee338bdb1985.png)
