Menu

#102 Hex constants after "(" are not recognized

closed-fixed
nobody
5
2016-04-25
2009-08-06
No

If a hexadecimal constant follows directly after an opening parenthesis without being separated from it by whitespace, Qalculate! fails to parse the expression.

For instance, using the "qalc" command-line tool, the expression

> (0xff)

error: "ff" is not a valid variable/function/unit.
0 * x = 0

yields an error, while

> ( 0xff)

255 = 255

(note the space) works without problems.

Discussion

  • Jonathan Stickel

    Still broken in 0.9.7

     
  • Cousteau

    Cousteau - 2012-05-14

    I can reproduce this bug. 0x10 is interpreted correctly but (0x10) is interpreted as 0*x*10.
    Also, ( 0x10) (with space) is interpreted as ( * 0x10), returning the right result but issuing a warning about a misplaced * operator.

     
  • Hanna K.

    Hanna K. - 2016-04-25
    • Status: open --> closed-fixed
     

Log in to post a comment.