Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~243 People Reached
Favorite Forums
Favorite Tags
Member Avatar for jwjazz

Why does entering the expression 011 evaluate to 9? and 0111 = 73, 01111 = 585, and so on.

Member Avatar for sneekula
0
109
Member Avatar for jwjazz

This function is part of a program to convert numbers between different bases. [code=language] num = 32 b1 = 10 b2 = 2 x = 1 def increasex(num,b2,x): if num%(b2**x) < num: x = x+1 increasex(num, b2, x) else: print x return x print increasex(num,b2,x) [/code] The parameters are the …

Member Avatar for jrcagle
0
134