rechnet nicht HP/MaxHP*100 sondern HP*100/MaxHP, dann hast du kein großes Kommastellenproblem