Menu

#67 Zero exponent = division by zero error

v1.0_(example)
closed
9
2017-02-14
2016-12-14
No

Zero exponent prints division by zero error.

Discussion

  • Jim Reneau

    Jim Reneau - 2017-02-14
    • status: open --> closed
    • assigned_to: Jim Reneau
     
  • Jim Reneau

    Jim Reneau - 2017-02-14

    I tested in 1.99.99.74 with the following

    print 1^0.0
    print 2^0
    print 3^-0
    print -4^0
    print 0^0

    they all print 1 (or -1). 0^0 probably should report an error.

    Can you please post the offending code and version you are running so that we can reproduce the error.

     
  • Aljoscha Wagner

    Aljoscha Wagner - 2017-02-14

    Where do I get 1.99.99.74? I only find 1.99.99.67 both installer and portable.

     

Log in to post a comment.

Auth0 Logo