• 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
Signs which are numbers.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Signs which are numbers.


  • Subject: Signs which are numbers.
  • From: Emmanuel <email@hidden>
  • Date: Mon, 15 Jan 2001 22:15:44 +0100

This may have been noticed before, in this case pardon me.

While debugging a parser of pseudo-formatted ASCII files, I have found the
following (AS 1.4.3).

--------------
"+" as integer
-- 0
--------------

This is cool.

--------------
"-" as integer
-- 0
--------------

Great !

--------------
"+" as real
--> error number -1700, Can't make "+" into a real
--------------

Well, er ... OK.

--------------
"-" as real
-- -1.0
--------------

Doh ! But:

--------------
"--" as real
--> error number -1700, Can't make "--" into a real
--------------

while:

--------------
"--------------------------------------------------" as integer
-- 0
--------------

and:

--------------
"-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+" as integer
-- 0
--------------

Any pointer to the IEEE about coercing signs into numbers ?

Emmanuel


References: 
 >Reference variables (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: Just one question
  • Next by Date: MacOS X AppleScript Differences Web Page
  • Previous by thread: Reference variables
  • Next by thread: Re: Reference variables
  • Index(es):
    • Date
    • Thread