Re: Decimal Point Truncations?
Re: Decimal Point Truncations?
- Subject: Re: Decimal Point Truncations?
- From: Jed Verity <email@hidden>
- Date: Thu, 08 Feb 2001 10:45:45 -0800
Hello Greg,
Glad it works. I can't say this is the standard method for truncating (I
hope it isn't, quite frankly) but I couldn't find anything in the standard
additions that would truncate without converting the class from real to
string. The rounding function (the only promising one) requires an integer
result. I'm sure there's an OSAX that would do this but it hardly seems
worth it...
Anyone else have insight into this one?
Jed
On 2/8/01 10:35 AM, Gregory Smith uttered these immortal words:
>
> set diskSize to diskSize as string
>
> set trunkSize to text 1 thru ((offset of "." in diskSize)+1) of diskSize
>
>
Hello Jed,
>
>
That seems to work. Thanks! Is this typically how decimal truncations are
>
handled in AppleScript?
>
--
>
>
Cheers,
>
Greg Smith
>
~)~)~)~)~)~)~)~)~)~)~)~)~)
Jed Verity