Do you mean Mikroe MikroC?
I only use Mikropacsal, but maybe it works in C too
I Pascal you use a String. A String work like a Array
So YOu can terminate it with 0 at the point you want.
If you have a:=1.2345 and want 1.23 then write vor the Variable a
a[5]:=0;
LCDOut(a);
Then you get 1.23
I hope this works for you.
Why you don'T ask this in the Mikroe Community?