I want 3000
for all these numbers:
3001 - 3500 - 3999
I want 40000
for all these numbers:
40000.3 - 40101 - 48000.8 - 49901
I want 20
for all these numbers:
21 - 25.2 - 29
There is two PHP function to make a digit round (floor and round) But none of them don't act exactly what I need.
Note: I don't know my number is contains how many digits. If fact it is changing.
Is there any approach to do that?