I can also extract the numbers only from the UI element as solved by @prasath17 here:

Now I need to convert the UI element to 1 decimal place. That is I am using a “Get Text” activity and after trimming to get the Number only, I then need to convert it to 1 decimal place in order to cross-check it with my Excel.

@NIVED_NAMBIAR
The problem I am experiencing now is that sometimes the UI element is like this:

But in my Excel the value is 1.0
So it does not match. Can we transform this number to 1 dp?
That is if we have the 7.32 in the UI element, it goes to 7.3 with your code.
But if we have 1 in the UI element, it gets transform to 1.0

I used an if condition to check if the UI element is in decimal place(Contains(“.”) or integer and convert it to 1 decimal place in both situations. It works fine with any numbers except if I have a number like “1.0” or “2.0434”, that is any number “x.0xxx”.
There it fails as it returns an integer (for ex: 2 instead of 2.0).