Well after everything, I have solved the problem.
The key is how the HTML code in my template was defined.
This is how I had to format it to take into account a float number.
Here is the modified code
{{'%.1f' | sprintf:itemValue('Temperature').split(' ')[0]}}
After the Temperature, I had to add
.split(’ ')[0]
This allowed it to work correctly.
Marking as Solved.
