Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: Distingui**...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 14 of 15 Topic 8159 of 8775
Post > Topic >>

Re: Distingui****ng between characters and numbers

by Dick Hendrickson <dick.hendrickson@[EMAIL PROTECTED] > Apr 23, 2008 at 12:26 AM

glen herrmannsfeldt wrote:
> Dick Hendrickson wrote:
> (snip)
> 
>> I believe a plus or minus sign that is not followed by some
>> digits is an error.
> 
>> 10.6.1.2.1 F editing says
>> "The input field is either an IEEE exceptional specification or
>> consists of an optional sign, followed by a string of one or
>> more digits optionally containing a decimal symbol, including
>> any blanks interpreted as zeros."
> 
> In Fortran 66 formatted (before list directed) input, blanks were
> considered as zeros.  A completely blank field was a legal zero,
> and I don't believe that a sign would have been illegal.
> 
> The last phrase on the quote above might only apply when
> BLANK="ZERO" is used on the OPEN statement.  If blanks are
> interpreted as zero, input like +E and -E- should be legal
> by the standard.
> 

Blanks aren't interpreted as zero in list directed input.  They're
value separators (unless they are in a character input string).

Also, 10.7.6 on the BN abd BZ edit descriptors says
"The blank interpretation mode affects only numeric editing (10.6.1)
and generalized numeric editing (10.6.4.1) on input."
Tracing back the references leads to the formatted edit
descriptors like I, F, G, etc.  Not to list directed input.

Dick Hendrickson
> I used to know calculators that would add a 1 if the EE
> (enter exponent) key was pressed before any digits.
> Convenient for entering powers of ten.
> 
> -- glen
>
 




 15 Posts in Topic:
Distinguishing between characters and numbers
SimonG <simon@[EMAIL P  2008-04-22 01:53:23 
Re: Distinguishing between characters and numbers
Arjen Markus <arjen.ma  2008-04-22 02:06:39 
Re: Distinguishing between characters and numbers
fj <francois.jacq@[EMA  2008-04-22 02:07:06 
Re: Distinguishing between characters and numbers
"FX" <couder  2008-04-22 09:12:57 
Re: Distinguishing between characters and numbers
"FX" <couder  2008-04-22 09:12:57 
Re: Distinguishing between characters and numbers
SimonG <simon@[EMAIL P  2008-04-22 03:09:19 
Re: Distinguishing between characters and numbers
Gordon Sande <g.sande@  2008-04-22 12:22:53 
Re: Distinguishing between characters and numbers
Gary Scott <garylscott  2008-04-22 07:36:41 
Re: Distinguishing between characters and numbers
Gordon Sande <g.sande@  2008-04-22 14:20:51 
Re: Distinguishing between characters and numbers
glen herrmannsfeldt <g  2008-04-22 10:38:37 
Re: Distinguishing between characters and numbers
Dick Hendrickson <dick  2008-04-22 12:42:17 
Re: Distinguishing between characters and numbers
nospam@[EMAIL PROTECTED]   2008-04-22 08:38:07 
Re: Distinguishing between characters and numbers
glen herrmannsfeldt <g  2008-04-22 08:33:04 
Re: Distinguishing between characters and numbers
Dick Hendrickson <dick  2008-04-23 00:26:24 
Re: Distinguishing between characters and numbers
SimonG <simon@[EMAIL P  2008-04-22 06:18:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 3:12:59 CDT 2008.