Skip to content

Instantly share code, notes, and snippets.

@diakopter
Last active December 19, 2015 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diakopter/5976904 to your computer and use it in GitHub Desktop.
Save diakopter/5976904 to your computer and use it in GitHub Desktop.
sub ndr(*@vals, Int :$radix is copy where ($radix||=10) > 0 && True) {
1+floor log (1 max [max] @vals>>.abs), $radix
};
say ndr(40,50,60);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment