Hi, I am looking for a class or function. It is simple but I would like to use a standard clean one instead of write one of my own.
This class or function should get the input value as float and return as the following:
Say if the input size is 890. then it will still be 890.
but if it is 1026, it should return 1 KB.
And if it is 2,000,000, it should return 2 MB.