• 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: Decimal Point Truncations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Decimal Point Truncations?


  • Subject: Re: Decimal Point Truncations?
  • From: email@hidden
  • Date: Thu, 8 Feb 2001 21:40:39 EST

In a message dated 2/8/01 1:51:29 PM,
email@hidden writes:

>I'm having a problem truncating decimals. Can anyone help?
>
>Example:
>
>set diskSize to free space of startup disk
> --> script code to recalculate diskSize variable to Gb <--
>display dialog diskSize

You have already had some excellent responses to your question, but I'd like
to add one more (closely related). I have created a OneClick button to do
what you ask which uses AppleScript for most of the calculations. You can see
the code for it on the WestCode site at:

http://www.westcodesoft.com/oneclick/how_to/favorites/size_of.html

I could have made it even more simple with the nifty new OC extension (Float
Extension by Jeff Thomas) that allows floating point math directly in
EasyScript (that is, if I had the extension when I wrote it!). If you have
OneClick, this is a pretty useful button to add.

Ken Fleisher
email@hidden


  • Prev by Date: Re: Decimal Point Truncations?
  • Next by Date: Re: How to make two functions running at the same time
  • Previous by thread: Re: Decimal Point Truncations?
  • Next by thread: Re: Decimal Point Truncations?
  • Index(es):
    • Date
    • Thread