Help with stamina bar

All you should have to do is normalize the float values you are using to produce a 0-1 scale for your percentages. This will force your values into the 0-1 scale, no matter what your actual cap is. So 50 would be .5 on a 0-100 scale, etc.