mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
remove binstring decimal to bcd
This commit is contained in:
@@ -4,7 +4,7 @@ from .__init__ import *
|
|||||||
def DecimalToBCDFunc(maxNumber=10000):
|
def DecimalToBCDFunc(maxNumber=10000):
|
||||||
n = random.randint(1000, maxNumber)
|
n = random.randint(1000, maxNumber)
|
||||||
x = n
|
x = n
|
||||||
binstring = ''
|
# binstring = ''
|
||||||
bcdstring = ''
|
bcdstring = ''
|
||||||
while x > 0:
|
while x > 0:
|
||||||
nibble = x % 16
|
nibble = x % 16
|
||||||
|
|||||||
Reference in New Issue
Block a user