Jerome Quelin > Language-Befunge > Language::Befunge::lib::BASE

Download:
Language-Befunge-4.13.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

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

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 ^

Language::Befunge, http://www.rcfunge98.com/rcsfingers.html#BASE.

AUTHOR ^

Jerome Quelin, <jquelin@cpan.org>

COPYRIGHT & LICENSE ^

Copyright (c) 2001-2009 Jerome Quelin, all rights reserved.

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

syntax highlighting: