Could not able to perform NOT operation in programming calculator

Bug #996331 reported by pradeep
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcalctool (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

When I tried to perform NOT operation in programming calculator ,the result shown as malformed expression. when I tried by entering with 0 and 1 I got the error message as malformed expression under binary mode.

Revision history for this message
Robert Roth (evfool) wrote :

Thank you for taking the time to report this bug. Could you please describe the exact steps you have made to reproduce this issue? I have tried and the NOT operation works for me as expected, however you have to click the NOT button before the number, not after you have entered the number.

Changed in gcalctool (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
pradeep (ktg-pradeep) wrote : Re: [Bug 996331] Re: Could not able to perform NOT operation in programming calculator

Hi Robert Roth,

                  I too have performed the same steps..I clicked NOT
and then 0 I got the result as 10×10⁶³ while I clicked 0 and then NOT
function I got the error message as Malformed function and I too have
tried in different system.But the result is same.
Thanks &Regards,
Pradeep.L
Junior Software Tester

On Tue, May 8, 2012 at 10:54 AM, Robert Roth <email address hidden> wrote:
> Thank you for taking the time to report this bug. Could you please
> describe the exact steps you have made to reproduce this issue? I have
> tried and the NOT operation works for me as expected, however you have
> to click the NOT button before the number, not after you have entered
> the number.
>
> ** Changed in: gcalctool (Ubuntu)
>       Status: New => Incomplete
>
> ** Changed in: gcalctool (Ubuntu)
>   Importance: Undecided => Low
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/996331
>
> Title:
>  Could not able to perform NOT operation in programming calculator
>
> Status in “gcalctool” package in Ubuntu:
>  Incomplete
>
> Bug description:
>  When  I tried to perform NOT operation  in programming calculator ,the
>  result shown as malformed expression. when I tried by entering with 0
>  and 1 I got the error message as malformed expression  under binary
>  mode.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/gcalctool/+bug/996331/+subscriptions

Robert Roth (evfool)
Changed in gcalctool (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
PioneerAxon (arth-svnit) wrote :

Hi pradeep, I think it is normal behaviour for gcalctool.
What the parser is intended to do is, process not for expressoin "<NOT> <NUMBER>".
The Not button inserts a <NOT> symbol in text, which is then passed to parser with structure similar like "<NUMBER> <NOT>".
So, what you need to do is press not button before entering the number.

Hope this helps.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.