• 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: number with one decimal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >number with one decimal (From: Willem <email@hidden>)

  • Prev by Date: number with one decimal
  • Next by Date: Re: number with one decimal
  • Previous by thread: number with one decimal
  • Next by thread: Re: number with one decimal
  • Index(es):
    • Date
    • Thread