NAME

Language::Befunge::lib::BASE - Non-standard math bases extension

VERSION

version 5.000

DESCRIPTION

The BASE fingerprint (0x42415345) allows numbers to be output-ed in whatever base you want. Note that bases are limited to base 36 maximum for practical reasons (missing chars to represent high numbers)

FUNCTIONS

new

Create a new BASE instance.

Output

B( $n )

Output top of stack in binary.

H( $n )

Output top of stack in hexa.

N( $n, $b )

Output $n in base $b.

O( $n )

Output top of stack in octal.

Input

$n = I( $b )

Input value in specified base, and push it on the stack.

SEE ALSO

http://www.rcfunge98.com/rcsfingers.html#BASE.

AUTHOR

Jerome Quelin

COPYRIGHT AND LICENSE

This software is copyright (c) 2003 by Jerome Quelin.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.