Help for this page

Select Code to Download


  1. or download this
    # TODO - prototype code only!
    my @num2word = qw{zero one two ... twenty};
    ...
    say q{I have }, $num2word[$apple_count], q{ apples.};
    
  2. or download this
    #!perl
    
    ...
        # Recurse with remaining digits
        return _get_triplets([@$ra_digits], $level + 1, [$string, @$ra_tex
    +t]);
    }
    
  3. or download this
    $ perl -Mstrict -wE 'use Number::Spell; say spell_number(100010001001)
    +'
    one hundred billion ten million one thousand one
    ...
    
    $ perl -Mstrict -wE 'use Util::Number; say conv_num_to_text(1000100010
    +01)'
    one hundred billion, ten million, one thousand and one