Skip to content

Instantly share code, notes, and snippets.

@perlpilot
Last active August 29, 2015 14:05
Show Gist options
  • Save perlpilot/8dcae28cfe73ea1778e3 to your computer and use it in GitHub Desktop.
Save perlpilot/8dcae28cfe73ea1778e3 to your computer and use it in GitHub Desktop.
This code:
my $knowhow := nqp::knowhow().new_type(:repr("P6bigint"));
my $int := nqp::fromstr_I('23456789123456789012345678912345678', $knowhow);
say($int);
produces this output:
893965902
with nqp-m (This is nqp version 2014.07-80-g4cf7f13 built on MoarVM version 2014.07-365-g29d2e7b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment