• 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: "Bob.Kalbaugh" <email@hidden>
  • Date: Thu, 31 Jan 2002 22:18:58 -0500

on 1/31/02 8:07 PM, Shane Stanley at email@hidden wrote:

> Hmmm. I'm on 1.8.2b1 under 9.2.1, and it doesn't work. And hasn't in any
> previous versions, as far as I'm aware (I'm fairly sure because I've used
> something like this to make the distinction between coercion and changing
> values in my courses for several years.)

FWIW - OMM - 9.0/1.4:

integer (3.5)
--> 4

however, this:

(3.5) as integer
--> can't make 3.5 into a integer

And what's up with this?

(3.5)
integer result
--> 4

(4.5)
integer result
--> 4 (???)

(5.5)
integer result
--> 6

(6.5)
integer result
--> 6 (???)

(7.5)
integer result
--> 8

????
--
Bob.Kalbaugh


  • Follow-Ups:
    • Re: How to coerce a real to an integer in X?
      • From: John W Baxter <email@hidden>
  • Prev by Date: Re: issues with non-ASCII characters vs. "do shell script"
  • Next by Date: 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