• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Formating bytes to Mbytes / Gbytes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Formating bytes to Mbytes / Gbytes
      • From: Andrew Oliver <email@hidden>
References: 
 >Re: Formating bytes to Mbytes / Gbytes (From: John White <email@hidden>)

  • Prev by Date: do shell script - any limit to text argument?
  • Next by Date: Re: Formating bytes to Mbytes / Gbytes
  • Previous by thread: Re: Formating bytes to Mbytes / Gbytes
  • Next by thread: Re: Formating bytes to Mbytes / Gbytes
  • Index(es):
    • Date
    • Thread