Function to convert a real number(5 decimal place) to real number with two decimal place

Just wondering if there is a function in structured text that can be used to convert a real number with five decimal places (eg 1.36849)

to real number with two decimal places(eg:1.36).

Hi,

if you won’t to round but just to cut off (your example looks like that), multiply your value by 100, cast it to integer to get 3 places, re-cast it to real and divide by 100.

Best regards!

1 Like