number splting

hi every one i have some valus whih is representing in the precentage formate example  1)908743.2% and some other like 2)23% it was data population in grid field my query was if the value contain length of 2 then need to print asit is but if it was more that length of 2 like i shown in example 1  it should show only 2 digit value 

if value was 33% i want show same 33 % 

if the value was like 98567.23% i want like 98%

note : there is no fixed length for the number which display on grid

  Discussion posts and replies are publicly visible