
Language::Befunge::IP::lib::FIXP - fixed point operations

The FIXP fingerprint (0x4649585) allows to do fixed point operations.

Create a new FIXP instance.
Those functions expect their arguments times 10000, and their result follow the same convention (this gives 4 digits of precision). All angles are in degrees.
Push back acos($v) on the stack.
See precision convention above.
Push back cos($v) on the stack.
See precision convention above.
Push back sin($v) on the stack.
See precision convention above.
Push back asin($v) on the stack.
See precision convention above.
Push back tan($v) on the stack.
See precision convention above.
Push back atan($v) on the stack.
See precision convention above.
Push back $a & $b on the stack.
Push back $a | $b on the stack.
Push back $a xor $b on the stack.
Push back rand($v) on the stack.
Push back 0-$a on the stack (negation of argument).
Push back $v * pi on the stack.
Push back sqrt $v on the stack.
Push back $a ** $b on the stack.
Push back the sign of $v on the stack.
Push back abs($v) on the stack.

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

Jerome Quelin,
<jquelin@cpan.org>

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.