Hi guys,
Quick one hopefully.
We are grabbing the joint angles using $SCR_GRP[1].$mch_ang[9] and comparing them with known values.
However, we are experiencing decimal place issues which cause the comparison to fail.
So the theory is to round up or down these values, or possibly just change the value to an integer.
I have seen there is a Karel instruction to round a real to integer, so simply:
1. Is there any TP instruction that offers the same.
2. Is there any system variable that can be used to assist with this - ie only grab values up to a specific no. of decimal places.
I don't want to have to write any Karel programs just for this purpose if I can help it, so if there is anything you can offer as information or pointers it would be very much appreciated.
Many thanks in advance.