• 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: How to coerce a real to an integer in X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to coerce a real to an integer in X?


  • Subject: Re: How to coerce a real to an integer in X?
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 01 Feb 2002 11:02:33 +1100

On 1/2/02 10:34 AM +1000, Michelle Steiner, email@hidden, wrote:

> integer (3.5)
> --> 4
>
> integer (3.4)
> --> 3

Are you sure you haven't got some third-party thing happening here? That
gives me an error. I have to use:

(3.4 div 1) as integer

or:

(round 3.4) as integer

--
Shane Stanley, email@hidden


  • Prev by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Next by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Previous by thread: Re: OO Theory misconceptions (was Re: can I make a list of
  • Next by thread: Re: How to coerce a real to an integer in X?
  • Index(es):
    • Date
    • Thread