#3717 HIGH Untriag: Calculator parses negation wrong (--1)=-1

Zarro Boogs per Child bugtracker at laptop.org
Fri Sep 21 15:37:00 EDT 2007


#3717: Calculator parses negation wrong (--1)=-1
---------------------------------+------------------------------------------
 Reporter:  seberg               |       Owner:  rwh      
     Type:  defect               |      Status:  new      
 Priority:  high                 |   Milestone:  Untriaged
Component:  calculator-activity  |     Version:           
 Keywords:                       |    Verified:  0        
---------------------------------+------------------------------------------
 If a number has two minus in front or -+, etc. the parser seems to only
 see the last sign. This gets even odder with brackets.

 Examples:

 --2 = -2
 12--+2 = 10
 12-(-(2)) = 10

 etc.

-- 
Ticket URL: <https://dev.laptop.org/ticket/3717>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list