Your code produces 8.5 on my 64-bit/5.10 install.
In reply to Re: What causes NaN when using bignum by BrowserUk in thread What causes NaN when using bignum by Microcebus