lkml.org 
[lkml]   [1996]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: GB vs. MB
Date

> koenig@tat.physik.uni-tuebingen.de (Harald Koenig) writes:
> > I like the disk size message in sd.c but since 1MB == 1024*1024 ==
> > 2^20,
>
> It isn't as simple as that.
>
> 1MB of RAM is, indeed, equal to 1024*1024 bytes.
> But 1.44MB floppy has 1.44*1000*1024 bytes.
> With hard disks, your mileage may vary.

I think you are taking this from the wrong end. Just because
a floppy manufacturer 'says' it is 1.44MB does not actually mean
that it "IS" 1.44MB. As per definitions:

8bits=1Byte
1024Bytes=1KByte
1024KBytes=1MByte
1024MBytes=1GByte
1024GBytes=1TByte
et al.

So you just have to divide it out. If your floppy disk says it has only say
1474560bytes available the disk is actually a 1.40MB floppy. NOT a 1.44MB.

Stephen

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.045 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site