How would i get percentage here?

how would i get percentage of a number with no max number?
probably my dumbest post but i cant figure it out for some reason

You would just multiply it by a decimal smaller than 1, for example, if you wanted to get 25% of 500 you would do print(500 * 0.25)

2 Likes

I believe you meant 1 not 0 but in any case you can multiply a value by two to get 200% of that value.
500 * 2 = 1000 --200% of 500

1 Like