Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: [Script]Best Fit

From: SunandaDH:aol at: 21-Jun-2004 6:44

> To convert bytes into kilo bytes you should divide by > 1024 rather than 1000. Its a binary thing.
It's also a very confusing thing, as there is no consistent usage, see, for example: What is important is the units in which Mauro's capacities are expressed. For example: "FL-144" [available-space: 1470] The actual capacity of a formatted 1.44MB floppy disk (under WIN/DOS -- it may vary on other OSes) is cap: 2880 * 0.5 * 1024 == 1474560 In 1024-kilo units that's
>> cap / 1024
== 1440 [Normally expressed as 1.44MB by dividing by 1000 (!)] In 1000-kilo units, it's
>> cap / 1000
== 1474.56 which is much closer to the value Mauro is using. I don't know if the other capacities he uses are "decimal kilo" compliant like this one, Sunanda.