• 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: John W Baxter <email@hidden>
  • Date: Thu, 31 Jan 2002 22:17:43 -0800

At 22:18 -0500 1/31/2002, Bob.Kalbaugh wrote:
>And what's up with this?
>
>(3.5)
>integer result
>--> 4
>
>(4.5)
>integer result
>--> 4 (???)

This is correct rounding (rounding the exact half to the even value).

--John (who doesn't plan to participate further in the week-long thread
which will ensue)
--
John Baxter email@hidden Port Ludlow, WA, USA


References: 
 >Re: How to coerce a real to an integer in X? (From: "Bob.Kalbaugh" <email@hidden>)

  • Prev by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Next by Date: RE: Re: Scripting Additions: Embracing the Horror of Unix
  • Previous by thread: Re: How to coerce a real to an integer in X?
  • Next by thread: Re: How to coerce a real to an integer in X?
  • Index(es):
    • Date
    • Thread