# TCP Message Tag manipulation

**URL:** <https://forum.inductiveautomation.com/t/tcp-message-tag-manipulation/31862>\
**Category:** Ignition\
**Created:** [February 3, 2020, 1:46pm UTC](https://forum.inductiveautomation.com/t/tcp-message-tag-manipulation/31862 "2020-02-03T13:46:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Craighunter1986](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@Craighunter1986](https://forum.inductiveautomation.com/u/Craighunter1986)\
**Post date:** [February 3, 2020, 3:57pm UTC](https://forum.inductiveautomation.com/t/tcp-message-tag-manipulation/31862/3 "2020-02-03T15:57:30Z")

</div>

thanks Wking. the setting on the scales seem quiet basic and couldn't see any print settings to adjust.

After multiple searches I came across the below link and managed to create and expression tag based on the OPC tag. Not sure if it is the best solution, but it works!

> [@Casting String to Integer with Expression](http://forum.inductiveautomation.com/t/casting-string-to-integer-with-expression/26233):
>
> If I have an OPC tag that returns a string and I would like to convert it to an integer then what is the expression statement to do this? For example, if the strings look like any one of these: 0.0? 125.0? 99.5? I would like to convert them to the following float values 0.0 125.0 99.5 The ‘?’ is part of what the device returns. I used the replace function to remove the ‘?.’ I used the replace function to remove the ‘.’ and then cast it to integer and float but I get an evaluation error. …

---

_[View the full topic](https://forum.inductiveautomation.com/t/tcp-message-tag-manipulation/31862)._
