Hello everyone. I have a problem with fanuc data with Real type. For my task i need to convert my cartesian robot position into string and send it to external device. But in Fanuc system, if data is in range from -1 to 1, then there is no leading zeros. So data such as 0.234 looks like .234. So because of there is no leading zeros external device can't parse robot position. To convert position i use CURPOS(0,0) to get current position and then for each coordiante CNV_REAL_STR routine to convert from real to string.
I wrote a simple routine that check, if coordinate is between -1 and 1 and add leading zero to start of converted coordinate, but maybe there is standart buildin karel routine to keep leading zeros active, or maybe system variable to include leading zeros?