Calculate output to LCD based on eventvalue

I want to calculate the output to an LCD, based on the eventvalue from a rotary encoder without changing the sent value. Eg. I want to map the value 0-127 to 0-5 with 2 decimal places without changing the sent midi value.

Something like

EVENT_ENC id=1 type=CC chn= 1 cc= 16 lcd_pos=1:1:1 label=“%CENC #%2i @(1:1:3)%d/127*5

Which obvilously does not work.

Cheers,

Kees