# Float Exponent Conversion

**URL:** <https://forum.inductiveautomation.com/t/float-exponent-conversion/112183>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting\
**Created:** [November 14, 2025, 2:40pm UTC](https://forum.inductiveautomation.com/t/float-exponent-conversion/112183 "2025-11-14T14:40:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![warren](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@warren](https://forum.inductiveautomation.com/u/warren)\
**Post date:** [November 14, 2025, 2:40pm UTC](https://forum.inductiveautomation.com/t/float-exponent-conversion/112183/1 "2025-11-14T14:40:55Z")

</div>

Hello,

I have an analog gauge feeding into my PLC as an input. I have to plug this raw data into an mathematical expression in order to convert voltage into a “raw pressure”

As an example, I have an image showing that I have some basic function inputs being the scaling factor for that particular gauge, as well as the analog input (simulated), with an output for raw pressure.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/1/5156114bc125ed8d45d6994a09e9831bd4b5bfd0.png)

These outputs are defined as LReal in my TIA project. The last two functions produce:

0.125892404049

0.000158489288

What I’d like to do know is how I can pass these values over to OPC tags and have them displayed inside ignition as:

1.25E-1

1.58E-4

Whereas right now they are displayed the raw value:

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

Should I find a way to do this in the TIA portal, or does Ignition have enough capability to handle this?

---

<div class="post-metadata">

**Author:** ![djs](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@djs](https://forum.inductiveautomation.com/u/djs)\
**Post date:** [November 14, 2025, 3:22pm UTC](https://forum.inductiveautomation.com/t/float-exponent-conversion/112183/2 "2025-11-14T15:22:35Z")

</div>

There would be multiple ways to do this depending on where you want the numbers displayed. Ignition does include options for specifying the format of the number that you want to display. Here's an example with an expression: `numberFormat(0.0000123, '0.###E0')`  
Which produces:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/c/2c5e8fa38de7bd5355311eed8e266ead16b3ff32.png)

---

<div class="post-metadata">

**Author:** ![warren](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@warren](https://forum.inductiveautomation.com/u/warren)\
**Post date:** [November 14, 2025, 3:59pm UTC](https://forum.inductiveautomation.com/t/float-exponent-conversion/112183/3 "2025-11-14T15:59:17Z")

</div>

That will do! Thanks sir
