Bignum arithmetic

Sean Hinde sean.hinde@REDACTED
Mon May 19 15:19:38 CEST 2003

Hi all,

For a bit of light relief I figured it would be fun to make an ssh  
client in Erlang. I figured that with such good bignum support it  
wouldn't be too tricky. So. has anyone any good ideas how to calculate:


without a badarith error?

Tried so far:

math:pow(2, Big_num).   % Ha Ha!

1 bsl Bignum.  % I had hopes for this one..



More information about the erlang-questions mailing list