mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
Update BCDtoDecimalFunc.py
This commit is contained in:
@@ -16,4 +16,6 @@ def BCDtoDecimalFunc(maxNumber=10000):
|
|||||||
|
|
||||||
problem = "Integer of Binary Coded Decimal " + str(n) + " is = "
|
problem = "Integer of Binary Coded Decimal " + str(n) + " is = "
|
||||||
solution = int(binstring, 2)
|
solution = int(binstring, 2)
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
|
bcd_to_decimal = Generator("Binary Coded Decimal to Integer", 91, "Integer of Binary Coded Decimal b is ", "n", BCDtoDecimalFunc)
|
||||||
|
|||||||
Reference in New Issue
Block a user