Mathematical problem with value conversion

i’m making some sort of a fuel gauge that is linked to an UI image, and the image’s fillamount will change according to the amount of fuel left.

i know fuelAmount / fuelCapacity returns the percentage of fuel left relative to the fuel capacity, but i want my UI image to have a fillamount of 0.6 as max, and there’s where my problem is. i couldn’t get my head to wrap around how make 1.0f = 0.6f in my case. can anyone help?

My answer will sound dumb but: 0.6f * fuelAmount / fuelCapacity should work.
Multiplying a number between 0 and 1 by 0.6f will transform it in an number between 0 and 0.6.