so my brain is very tired rn and i want to figure out a way to turn numbers in between 1 and 2 into percents. thanks

multiply the number by 100. So if you have a number 1.5, for example, you can convert it to a percentage by multiplying it by 100: 1.5 * 100 = 150%. Therefore, a number between 1 and 2 can be easily converted to a percentage by multiplying it by 100.

2 Likes

```
number = 1.245 -- example number
number -= 1 -- get it in the range [0,1]
number *= 100
```

This is if you want to â€śvisualizeâ€ť the percentage. If you are using a percentage in some way. youâ€™d want it to be in the range of [0,1] not [0,100]

Because if you want to say 10% of some number, you would do

`local newNumber = number * 0.1`

in this case, 0.1 is 10%

Because 0.1 * 10 == 1

And 10% * 10 == 100%

100% == 1