[Bugs] #4811 Sugar UNSP: Function b10bin(x) in Calculator Activity does not give desired output

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Jan 20 05:23:30 EST 2015


#4811: Function b10bin(x) in Calculator Activity does not give desired output
----------------------------------------+-------------------------------
  Reporter:  gauravm043                 |            Owner:  gauravm043
      Type:  defect                     |           Status:  new
  Priority:  Unspecified by Maintainer  |        Milestone:  Unspecified
 Component:  Sugar                      |          Version:  Unspecified
  Severity:  Unspecified                |       Resolution:
  Keywords:  Calculate Activity         |  Distribution/OS:  Ubuntu
Bug Status:  Unconfirmed                |
----------------------------------------+-------------------------------
\
\
\
\
\
\
Description changed by gauravm043:
\

Old description:

> Function b10bin() in Calculator is supposed to return decimal value of a
> binary number given as input but it is returning
>
> b10bin(1111) = 23 Correct
> b10bin(1000) = 1 Incorrect
> b10bin(1010) = 5 Incorrect
>
> There is a need to correct the function Implementation.

New description:

 Function b10bin() in Calculator is supposed to return decimal value of a
 binary number given as input but it is returning

 b10bin(1111) = 15 Correct
 b10bin(1000) = 1 Incorrect
 b10bin(1010) = 5 Incorrect

 There is a need to correct the function Implementation.

--
\
\
\
\

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


More information about the Bugs mailing list