i would need some advice if it is possible to get the initial number from a total number. I am trying to create a level system in my application and i need from the total experience to find the current experience level.
level 1 require 10 to complete for a total of 10
level 2 require 20 to complete for a total of 30
level 3 require 30 to complete for a total of 60
and so on....
my question is how with the " total " can i get the level number.
so if i got 100 as total it should return me 4 as level
is there a mathematic way to achieve this knowing total and that each level increment by 10 ?