Opened 9 years ago

Last modified 9 years ago

#4811 closed defect

Function b10bin(x) in Calculator Activity does not give desired output — at Version 3

Reported by: gauravm043 Owned by: gauravm043
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Sugar Version: Unspecified
Severity: Unspecified Keywords: Calculate Activity
Cc: Distribution/OS: Ubuntu
Bug Status: Unconfirmed

Description (last modified by gauravm043)

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.

Change History (3)

comment:1 Changed 9 years ago by gauravm043

I am working on it :) .

comment:2 Changed 9 years ago by gauravm043

  • Description modified (diff)

comment:3 Changed 9 years ago by gauravm043

  • Description modified (diff)
Note: See TracTickets for help on using tickets.