Hi,

If there’s one thing I’d like to learn more about programming, it’d be the math. It can be extremely helpful for pretty much everything.

What I need to do is convert my players health to a percentage, easy *.01 but how can I use this in an if statement?

Like:

```
if (playersHealth <= 90%)
{
//do this
}
if (playersHealth <= 80%)
{
//do this
}
```

I need to do it this way because my player grows levels and as he progresses levels his health increases. This needs to be constant, at 90% of player’s health this will always happen, whether the health is 10,000 or 100. Thanks in advance.