Re: Decimal Point Truncations?
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