how to format decimal precision of a real?
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.