Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

RDRVSX32: FAT32 RAM drive for HimemSX (Announce)

posted by Richard, 01.04.2022, 14:28

>
> I've updated the zip with the drive letter fix and decimal sizes, along
> with a fixed DOSLFN.


I just realized that I made a big mistake. I was assuming that when say 28 GB RAM drive is created, that it is 28 * 1024 * 1024 * 1024 bytes however I think it is only 28 * 1000 * 1000 * 1000.


So 32 GB is actually

34,359,738,368 B
33,554,432 KB
32,768 MB

in base 2 notation of the term Gigabyte.



I think everything from RdrvSX32 is as per the decimal (base 10) notation of Gigabyte.


So for the sizes, eg "1", could it be that 1024 * 1024 * 1024 bytes is allocated instead of the base 10 value?

Similarly, "1M" should be 1024 * 1024 bytes.



So, to avoid confusion (?), have


"blank", "G", "M" i.e. capitals are for the base 2 notation (no fractional part)

"g", "m" i.e. lower case are for the decimal base 10 notation (with decimal fraction resolution.



I was wondering why there was a discrepancy of about 2 GB - I thought I had a "bonus" 2 GB but in fact it was

34,359,738,368 B - 32,000,000,000 = ~ 2 GB



Most of my applications refer to the base 2 notation.


I was initially concentrating on the small details and completely missed noticing this big error of mine.

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 413 users online (0 registered, 413 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum