[Bugs] #2243 HIGH: Charactors and some symbols are allowed to print in Calculator

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Aug 26 20:31:00 EDT 2010


#2243: Charactors and some symbols are allowed to print in Calculator
----------------------------+-----------------------------------------------
    Reporter:  virtusanqa   |          Owner:  rwh                        
        Type:  defect       |         Status:  closed                     
    Priority:  High         |      Milestone:  Unspecified by Release Team
   Component:  Calculate    |        Version:  0.84.x                     
    Severity:  Major        |     Resolution:  notabug                    
    Keywords:  Calculator   |   Distribution:  OLPC                       
Status_field:  Unconfirmed  |  
----------------------------+-----------------------------------------------
Changes (by garycmartin):

  * status:  new => closed
  * resolution:  => notabug


Comment:

 Please provide the version of Calculate you are testing against as part of
 your description. I'm using the latest version 32 for my comments below.

 Calculate allows the definition of variables for further calculations and
 sharing with other users collaboratively. I agree it is perhaps advanced
 for our 6 to 12 year old main audience, but I consider it a 'high celling'
 for some. I have been considering the possibilities of a basic mode for
 calculate to switch it to a very simple non-scientific calculator
 interface, or the possibility of a separate activity perhaps called 'sum'
 that provides a similar minimal, bare bones calculator interface with just
 addition, subtraction, multiplication and division. If you think this is
 particularly important to your deployment please raise a separate ticket
 of type "enhancement".

 Out of the symbols provided in your example:

 * "qwertyu" is a valid variable name, if defined (see the Label field
 above the main input field, or type in qwertyu:3.142 to define it with the
 value of 3.142).

 * The "*", "(", and ")", characters are all valid for use in normal
 calculations e.g. 10/(5*3)

 * The % sign is a short cut for the modulus mod() function e.g. 11%2 is
 equivalent to mod(11,2).

 * The ! symbol is valid when used as part of a boolean expression e.g.
 True!=False

 * If you type in "qwertyu!%*()", Calculate will provide an error message
 "Error at 8: Parse error", indicating in red that the ! character was
 found in an unexpected place.

 Closing this ticket for now, but please reopen and add more information if
 I misunderstood the case.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2243#comment:2>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list