Welcome, guest | Sign In | My Account | Store | Cart

Proc to convert bytes to megabytes.

Tcl, 4 lines
1
2
3
4
# Convert to MB
proc toMB {n} {
    return [expr {$n / (1024*1024)}]
}
Created by Patrick Finnegan on Sun, 23 Jan 2005 (MIT)
Tcl recipes (162)
Patrick Finnegan's recipes (56)

Required Modules

  • (none specified)

Other Information and Tasks