Opened 9 years ago

Last modified 9 years ago

#4811 closed defect

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

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

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 (0)

Note: See TracTickets for help on using tickets.