# Data Type Conversion - Float8 to Float4

**URL:** <https://forum.inductiveautomation.com/t/data-type-conversion-float8-to-float4/103988>\
**Category:** Ignition\
**Created:** [March 21, 2025, 12:35am UTC](https://forum.inductiveautomation.com/t/data-type-conversion-float8-to-float4/103988 "2025-03-21T00:35:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dturner](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dturner](https://forum.inductiveautomation.com/u/dturner)\
**Post date:** [March 21, 2025, 12:35am UTC](https://forum.inductiveautomation.com/t/data-type-conversion-float8-to-float4/103988/1 "2025-03-21T00:35:32Z")

</div>

I am using the OPC com module to read data from a wind turbine. Items like Frequency and kW have the data type of double in the OPC server and Float8 in Ignition. Is there a way to convert those data types to a Float4 since they will never utilize the full range of a Float8? I also, use the OPCCom Tunneller to serve the data out to OPC UA clients that use the data to build DNP maps. I believe, if possible, it would be easier to modify the data on the Ignition end than on the end user side. Cannot use any data types larger than 32 bits.

---

<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:** [March 21, 2025, 12:36am UTC](https://forum.inductiveautomation.com/t/data-type-conversion-float8-to-float4/103988/2 "2025-03-21T00:36:40Z")

</div>

Did you try to set the OPC tag's type to Float4?

---

<div class="post-metadata">

**Author:** ![dturner](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dturner](https://forum.inductiveautomation.com/u/dturner)\
**Post date:** [March 21, 2025, 12:39am UTC](https://forum.inductiveautomation.com/t/data-type-conversion-float8-to-float4/103988/3 "2025-03-21T00:39:32Z")

</div>

Do you mean the OPC-DA server onsite? I do not have access to that.

---

<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:** [March 21, 2025, 12:41am UTC](https://forum.inductiveautomation.com/t/data-type-conversion-float8-to-float4/103988/4 "2025-03-21T00:41:25Z")

</div>

No, the Igntion tag's data type. It doesn't have to match the source value type from OPC. Ignition will try to coerce to the target type. (Though I haven't tested coercion from float8 to float4, I'd be surprised if it couldn't.)

---

<div class="post-metadata">

**Author:** ![dturner](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dturner](https://forum.inductiveautomation.com/u/dturner)\
**Post date:** [March 21, 2025, 12:50am UTC](https://forum.inductiveautomation.com/t/data-type-conversion-float8-to-float4/103988/5 "2025-03-21T00:50:48Z")

</div>

I have changed it on the Ignition side and I am trying to see if reflects at the OPC-UA Client. I will post the results in a few.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 21, 2025, 1:32am UTC](https://forum.inductiveautomation.com/t/data-type-conversion-float8-to-float4/103988/6 "2025-03-21T01:32:23Z")

</div>

There’s no reason to modify the DataType on the Ignition side if you can’t change the server side.

---

<div class="post-metadata">

**Author:** ![dturner](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dturner](https://forum.inductiveautomation.com/u/dturner)\
**Post date:** [March 21, 2025, 2:11am UTC](https://forum.inductiveautomation.com/t/data-type-conversion-float8-to-float4/103988/7 "2025-03-21T02:11:25Z")

</div>

It allowed me to change the data type but it does not carry through to the Client.

---

<div class="post-metadata">

**Author:** ![dturner](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@dturner](https://forum.inductiveautomation.com/u/dturner)\
**Post date:** [March 21, 2025, 2:12am UTC](https://forum.inductiveautomation.com/t/data-type-conversion-float8-to-float4/103988/8 "2025-03-21T02:12:19Z")

</div>

That is what I saw when I tried to change it. It did not carry through to the OPC-UA Client.
