# Float Value doesn't appear by a Script event (on Click)

**URL:** <https://forum.inductiveautomation.com/t/float-value-doesnt-appear-by-a-script-event-on-click/58744>\
**Category:** Ignition\
**Tags:** scripting, ignition81, perspective\
**Created:** [April 22, 2022, 2:35pm UTC](https://forum.inductiveautomation.com/t/float-value-doesnt-appear-by-a-script-event-on-click/58744 "2022-04-22T14:35:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hector\_Aaron\_Mani\_La](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hector\_Aaron\_Mani\_La](https://forum.inductiveautomation.com/u/Hector_Aaron_Mani_La)\
**Post date:** [April 22, 2022, 2:35pm UTC](https://forum.inductiveautomation.com/t/float-value-doesnt-appear-by-a-script-event-on-click/58744/1 "2022-04-22T14:35:24Z")

</div>

Hi everyone I have these 3 Displays and a want tomake the division Tiempo Esperado = Memoria 1 / Standar Rate Memoria 1 (200/88 = 2.27).  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/4/6411b5e76b7235c17790aa7db8d1541504f0c162.png)  
This is the Code that I have made:

```auto
self.getSibling("TiempoEsperado_dsp").props.value = self.getSibling("Memoria1_dsp").props.value/self.getSibling("StdRateMEM1_dsp").props.value

```

Is there another way to display the float value. I made a Cast to float but it only shows the integer.

Best regards.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 22, 2022, 2:55pm UTC](https://forum.inductiveautomation.com/t/float-value-doesnt-appear-by-a-script-event-on-click/58744/2 "2022-04-22T14:55:16Z")

</div>

Integers divided by integers yield integers, in python. Include a float in the expression to get floating point math. Could be as simple as prefixing your expression with `1.0 * ...`.
