Add sign function bsgn() as a complement to babs().
authorPeter John Acklam <pjacklam@online.no>
Mon, 7 Mar 2011 10:45:38 +0000 (11:45 +0100)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 11 Jun 2011 19:14:25 +0000 (12:14 -0700)
commit7833bfdd94cb7b5afbbc1b18e75e664482f529d5
treea415ddbaf2b70fb787243d402b707555d000baf8
parent074ededac3b0d3c126e0affff0c86afc1257e665
Add sign function bsgn() as a complement to babs().

This is the standard mathematical signum function. It sets the
invocand to -1, 0, or 1, if it is real, and NaN otherwise.

Documentation and tests are included.
dist/Math-BigInt/lib/Math/BigInt.pm
dist/Math-BigInt/t/bare_mbi.t
dist/Math-BigInt/t/bigintpm.inc
dist/Math-BigInt/t/bigintpm.t
dist/Math-BigInt/t/sub_mbi.t