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

Re: Bug?


  • Subject: Re: Bug?
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 23 Dec 2002 18:50:41 -0800

On 12/23/02 6:34 PM, "Michelle Steiner" <email@hidden> wrote:

> AS 2.0 beta

Is there an AS 2.0 beta? I've got SE 2.0 beta and System Events 1.2 beta
from Dev Tools, but nevertheless:

get version
--> "1.9.1"


>
> set x to (round (10 / 3) * 10 as real)
> class of x
>
> --> integer

Standard Additions:

round: Round number to integer (defined in: StandardAdditions.osax)
round [real] -- the number to round

Result: integer -- the rounded value



The result of round is always integer. That's the point of rounding.

Did you perhaps intend:


set X to (round (10 / 3) * 10) as real
class of X
--> real

(Misplaced parenthesis, not bug.)



--
Paul Berkowitz
_______________________________________________
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: 
 >Bug? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Bug?
  • Next by Date: Re: 10.2.3
  • Previous by thread: Bug?
  • Next by thread: Re: simple number question
  • Index(es):
    • Date
    • Thread