Upload Component, show uploaded bytes in MegaBytes?

Ìs it possible, in an easy way to convert the readByte and contentLengtValue from the updateProgress-method to display the upload-progress in MegaBytes instead?
I tried to just do this: readBytes / 1024 / 1024 which works just fine, but I want it to be more precise, actually I want two decimals…
If I have 54861826 bytes it shows 52MB and I want it to show 52,32MB…

I loose the decimals when I just divides readBytes with 1024 twice…

You can use DecimalFormat to format your number:

DecimalFormat df = new DecimalFormat();
df.format((double) 54861826 / 1024 / 1024);