Math to display total bytes as MB

Okay, my preloader has some code in it to display the percentage of a 6 MB movie and I want to display the proper file size such as 6.53MB instead of 6987362892 Bytes. Here is what i have so far and it’s not working.
[AS]percent.text = Math.round((getBytesLoaded() / getBytesTotal()) * 100) + ‘% of ’ + [COLOR=darkred]Math.round(getBytesTotal()) / 1024[/COLOR] + ’ kb’;[/AS]

The red code is where I’m having my problems. Any help would greatly be appreciated.:nerd: