TwinCAT tools for better programming
Download library file then in TwinCAT project go to References -> Library Repository -> Install -> find the library file and click Open.
VAR
roundValue : LREAL;
END_VAR
roundValue = F_ROUND_LREAL(5.22222222, 2); // Round value to second sign