Re: Formating bytes to Mbytes / Gbytes
Re: Formating bytes to Mbytes / Gbytes
- Subject: Re: Formating bytes to Mbytes / Gbytes
- From: Doug McNutt <email@hidden>
- Date: Mon, 7 Apr 2003 22:52:20 -0600
Please use gibi kibi and mibi prefixes if you do such a thing. Otherwise the numbers you present are TRULY confusing to most of the world.
<
http://physics.nist.gov/cgi-bin/cuu/Info/Units/binary.html>
Apple System Profiler finally has it almost right. At least one can understand it there.
Would you call a byte a dekabit?
At 19:23 -0400 4/7/03, John White wrote:
>
?This is what I use. Hopefully the values are correct for each conversion.
>
>
if size !C 1.073741824E+9 then
>
set units to "gigabytes"
>
set size to size / 1.073741824E+9
>
end if
>
>
if size < 1.073741824E+9 and size !C 1048576 then
>
set units to "megabytes"
>
set size to size / 1048576
>
end if
>
>
if size < 1048576 and size !C 1024 then
>
set units to "kilobytes"
>
set size to size / 1024
>
end if
>
>
jlw
>
-------------------------------------------
>
Carthago delenda est
>
- Cato the Censor
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
--
--> If you are presented a number as a percentage, and you do not clearly understand the numerator and the denominator involved, you are surely being lied to. <--
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.