• 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: 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


  • Follow-Ups:
    • Re: Decimal Point Truncations?
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: AppleScriptable secure Telnet/file transfer
  • Next by Date: Re: Decimal Point Truncations?
  • Previous by thread: Re: Decimal Point Truncations?
  • Next by thread: Re: Decimal Point Truncations?
  • Index(es):
    • Date
    • Thread