Lisp can do it, PSEUDO code
I would start by making a variable of the Z value, then search inside that for the "." (period), noting its position index number, grab next index number, and decide if you want to round up or down, then you could set the variable equal to the STRCAT( Left( Zvalue, Period postion ) and the rounded tenth)
Hope this helps