I have a variable containing a value in bit, ex 10000000 representing 10mb. I'd like to write a function that from a value in bit, return a string with the right unit and correctly converted.
Example if I use 52200000, it returns 52.2mb.
I don't know how to proceed. Can someone help, thank you