Menu

#15 exponent 0 not accepted

closed-fixed
Math (8)
5
2012-03-10
2012-03-08
No

Wcalc doesn't accept numbers with exponent 0 in scientific notation.

Example:
1*1e1 gives the correct result
1*1e0 complains about undefined variable e0.
1*1e+0 and 1*1e+00 give the number e.

Discussion

  • Kyle Wheeler

    Kyle Wheeler - 2012-03-10
    • labels: --> Math
    • assigned_to: nobody --> memoryhole
    • status: open --> closed-fixed
     
  • Kyle Wheeler

    Kyle Wheeler - 2012-03-10

    This is fixed. The changes are in the current CVS tree, and will be in the next release. Thanks for catching it!

     
  • Kyle Wheeler

    Kyle Wheeler - 2012-03-10

    I think I did that originally to avoid dealing with mixing bases (e.g. 1e040 could be interpreted as either 1e40 or 1e32). But it's easy enough to allow and still not deal with mixed bases.

     

Log in to post a comment.

MongoDB Logo MongoDB