EmEditor (text editor) Forum Index Macro Samples
Macro: Calculate HDD Size in MB from entered GB size | Register To Post |
| Threaded | Oldest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| Stefan | Posted on: 4/9/2013 3:02 am |
Home away from home ![]() ![]() Joined: 7/14/2008 From: Germany, EU Posts: 259 |
Macro: Calculate HDD Size in MB from entered GB size Do you want to create new partitions with exactly n GB but you have to enter this in MB unit because the Disk Management wants to get MB only? If yes, this script will aid you. It calculates the MB size from the entered GB (or TB) size: Basically it's just a simple math: n GB = n*1024 MB n TB = n*1024*1024 MB But since EmEditor is open anyway, he can do the math for me: // 10 GB = 10240 MB // 80 GB = 81920 MB // 100 GB = 102400 MB // 250 GB = 256000 MB // 300 GB = 307200 MB // 400 GB = 409600 MB // 500 GB = 512000 MB // 555 GB = 568320 MB //1000 GB = 1024000 MB //1024 GB = 1048576 MB // 1 TB = 1048576 MB // 80 TB = 83886080 MB |
| Threaded | Oldest First | Previous Topic | Next Topic | Top |
| Register To Post | |


