Fixed 32bit double float issue

Hi,
This is a fix for the 32bit double float bug introduced by DGWv2.

The code comes with commented out Blockhalving and DGWv3.
I will formulate a 2nd PR for them.