• 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
Rounding off in AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rounding off in AppleScript


  • Subject: Rounding off in AppleScript
  • From: "Kumar Shailove" <email@hidden>
  • Date: Tue, 12 Apr 2005 17:51:16 +0530
  • Thread-topic: Rounding off in AppleScript

Hello list,

Does there exist any AppleScript primitive that rounds off a floating
point number up to a desired number of decimal points, e.g.

RoundOff(4.213452, 2)

Could round off the number and return me 4.21

And similarly

RoundOff(4.98123, 0)
 Returns me 5.00

TIA.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Rounding off in AppleScript
      • From: Vince <email@hidden>
  • Prev by Date: FTP files through curl
  • Next by Date: Re: Rounding off in AppleScript
  • Previous by thread: Re: FTP files through curl
  • Next by thread: Re: Rounding off in AppleScript
  • Index(es):
    • Date
    • Thread