• 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
how to format decimal precision of a real?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to format decimal precision of a real?


  • Subject: how to format decimal precision of a real?
  • From: Bill Hoffman <email@hidden>
  • Date: Sat, 02 Mar 2002 17:30:27 -0800

I can't believe I don't know (and can't find anywhere) the answer to this but...

How do I format:

a real -- 324.234234234
as -- 324.23

(or to any specified number of digits after the decimal).

Is there something straightforward that I'm somehow not getting, or is it one of those issues where I'll have to futz around with coercing it to a string, setting text delimiters to split on the decimal, counting the chars in remainder, yada yada....sheesh. If so I can figure that out, but I'm hoping there's an AS equivalent of 'format' that has somehow escaped me. I suspect not.
_______________________________________________
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.
  • Follow-Ups:
    • Re: how to format decimal precision of a real?
      • From: Andy Wylie <email@hidden>
  • Prev by Date: Re: Hiding OE's window
  • Next by Date: Re: Hiding OE's window
  • Previous by thread: X Scripting Guidance for Terminal/Finder
  • Next by thread: Re: how to format decimal precision of a real?
  • Index(es):
    • Date
    • Thread