I needed this library to continue working on one or two of my projects. Hopefully it will be of use to someone else too. These functions attempt to perform accurate calculations for the largest Int-64 values, testing for integer overflow and resorting to floats when results go out of range. This library is primarily intended to be used with Int-32 or Int-64 values and it offers no advantage whatsoever to pass floats as parameters. It only makes sense if you intend to perform accurate calculation
A question about base conversion came up recently. This presents a good opportunity to write a practical example using some of these functions. It makes good sense to post examples here. I have made a couple of modifications to my original code after running a few tests.
#include 'operator64.au3'
Func DecToBase($iInt, $iBase)
$iInt = __Integer64($iInt)
If @error Or $iInt < 0 Then Return SetError(1, 0, '') ; positive integers only
$iBase = __Integer6