Re: number with one decimal
Re: number with one decimal
- Subject: Re: number with one decimal
- From: Michelle Steiner <email@hidden>
- Date: Mon, 18 Jul 2011 12:42:40 -0700
On Jul 18, 2011, at 12:26 PM, Willem wrote: I am stuck with rounding an number to one decimal, something strange is happening. I have this applescript in Xcode 3.1.4:
this is a problem with binary coded decimal (BCD) that has existed for seemingly ever.
For what it's worth, I tried your script in Applescript Editor, and it gives the proper result.
Try this:
set contents of text field "Resultaatveld" to((resultaat * 10) as integer) / 10
-- Michelle
-- "I'll do the best I can do because that's the best I can do!"
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden