philiprbrenan has asked for the wisdom of the Perl Monks concerning the following question:
require v5.16; use Test::More qw(no_plan); for(51..66) {my $s = sprintf("%b", 2**$_-1); ok length($s) == $_; }
gives me:
# Looks like you failed 12 tests of 16. ok 1 ok 2 ok 3 not ok 4 not ok 5 not ok 6 not ok 7 not ok 8 not ok 9 not ok 10 not ok 11 not ok 12 not ok 13 ok 14 not ok 15 not ok 16 1..16
Is this something to worry about?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Converting 2**54-1 to Binary
by duelafn (Parson) on Mar 18, 2017 at 13:55 UTC | |
by swl (Prior) on Mar 18, 2017 at 23:58 UTC | |
|
Re: Converting 2**54-1 to Binary
by stevieb (Canon) on Mar 17, 2017 at 21:33 UTC | |
|
Re: Converting 2**54-1 to Binary
by Eily (Monsignor) on Mar 17, 2017 at 21:17 UTC | |
by pryrt (Abbot) on Mar 17, 2017 at 21:44 UTC | |
|
Re: Converting 2**54-1 to Binary
by ikegami (Patriarch) on Mar 20, 2017 at 02:33 UTC |