• 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: rounding integers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rounding integers


  • Subject: Re: rounding integers
  • From: Chet Goetz <email@hidden>
  • Date: Fri, 31 Oct 2003 11:21:16 -0600

Thanks, Donald

That works great! I appreciate your help.

Chet

On Friday, October 31, 2003, at 10:46 AM, Donald Goyette wrote:

On Friday, October 31, 2003, at 11:08 AM, Chet Goetz wrote:
Would someone be able to get me started on how to round a number to two decimals?

round (defined in: StandardAdditions.osax) gives an integer result. To get two decimal places, you could multiply by 100 before rounding, then divide the result by 100:

(round (19.948 * 100)) / 100 --> 19.95
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: rounding integers (From: Donald Goyette <email@hidden>)

  • Prev by Date: Re: rounding integers
  • Next by Date: F5 key
  • Previous by thread: Re: rounding integers
  • Next by thread: Re: rounding integers
  • Index(es):
    • Date
    • Thread