We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2e39a7 commit dc587a3Copy full SHA for dc587a3
1 file changed
tests/float/float2int.py
@@ -33,7 +33,7 @@
33
for i in range(0,p2_rng):
34
bitcnt = len(bin(int(2.**i))) - 3;
35
if i != bitcnt:
36
- print('fail: 2**%u was %u bits long' % (i, bitcnt));
+ print('fail: 2.**%u was %u bits long' % (i, bitcnt));
37
testpass = False
38
print("power of 2 test: %s" % (testpass and 'passed' or 'failed'))
39
@@ -43,7 +43,7 @@
43
for i in range(0,p10_rng):
44
digcnt = len(str(int(10.**i))) - 1;
45
if i != digcnt:
46
- print('fail: 10**%u was %u digits long' % (i, digcnt));
+ print('fail: 10.**%u was %u digits long' % (i, digcnt));
47
48
print("power of 10 test: %s" % (testpass and 'passed' or 'failed'))
49
0 commit comments