format memory measurements using 1024 as base