On AIX 4.3.3 with IBM C 5.0.2 I get the following:

t/op/number.........ok 9/35#     Failed test (t/op/number.t at line 278)
t/op/number.........NOK 10#          got: '5.000000
# -0.000000
# 2.000000
# -1.000000
# 1.000000
# -2.000000
# '
#     expected: '5.000000
# 0.000000
# 2.000000
# -1.000000
# 1.000000
# -2.000000
# '

Robin

> -----Original Message-----
> From: Michael Joyce [SMTP:[EMAIL PROTECTED]]
> Sent: 17 December 2002 07:11
> To:   [EMAIL PROTECTED]
> Subject:      Negative Zero
> 
> I've just subscribed to the mailing lists, and I'm very excited to be a
> part 
> of this. I started reading the documentation and I've been reading
> throught
>  he tests. It's making a lot of sense, which is a good thing.
> 
> My question is, has there been a decision for negative zero? Zero
> shouldn't be 
> negative (IMHO) or if it is allowed to be zero, then the floating point
> zero 
> and the integer zero should probably behave the same way.
> 
> I'll give an example:
> 
>       set N1,0
>       print N1
>       print "\n"
>       neg N1, N1
>       print N1
>       print "\n"
> 
>       set I1,0
>       print I1
>       print "\n"
>       neg I1,I1
>       print I1
>       print "\n"
> 
> outputs
> 0.000000
> -0.000000
> 0
> 0
> 
> Michael
> 
> 
> 
> 
> **************************************************************************
> **************************
> Confidentiality: This e-mail and any files transmitted with it are
> confidential and intended solely for the use of the individual or entity
> to whom they are addressed.  If you have received this e-mail in error,
> use of this information (including disclosure, copying or distribution)
> may be unlawful.  Please notify [EMAIL PROTECTED] and
> delete the message immediately.
> 
> Security: Internet e-mail is not a 100% secure communications medium. 
> 
> Viruses: This e-mail (and any attachments) has been checked (using Sophos
> Sweep 3.63 + patches) and found to be clean from any virus infection
> before leaving.  
> Therefore neither Aquila Networks Services Ltd nor Midlands Electricity
> plc  or any of their group undertakings  (as defined by the Companies Act
> 1989) (together referred to as the "Companies") accept legal
> responsibility for this message or liability for the consequences of any
> computer viruses which may have been transmitted by this e-mail.
>  
> Monitoring: All electronic communications with the Companies may be
> monitored in accordance with the UK Regulation of Investigatory Powers
> Act, Lawful Business Practice Regulations, 2000.  If you do not consent to
> such monitoring, you should contact the sender of this e-mail. 
> 
> Aquila Networks Services Limited, 
> Registered office: Whittington Hall, Whittington, Worcester, WR5 2RB
> Registered in England and Wales number 3600545
> This e-mail may be sent on behalf of any of the Companies.
> **************************************************************************
> **************************

Reply via email to