Find where close is in daily range

Hi. I can find daily percent from low with this code.

y=HIGH() - LOW();
z=CLOSE()-LOW();
a=z/y;

Is there a pre-coded function that I can use to do this?

Thanks. Andy