This thread is very sad. Bitcoin is seriously affected with not-invented-here-itis. I personally started to think that the current milieu here is hopeless. The only hope is that the currently involved software designers fall of the face of the Earth's Internet and get replaced by a new blood.
On the other hand I also know that a lot of bright young people read this forum. So for the benefit of the young blood:
1) please learn the difference between binary floating point and decimal floating point. The good starting point is:
http://speleotrove.com/decimal/2) please compile this little C program using your recent C compiler:
#include <stdio.h>
int main()
{
_Decimal32 x,y;
x = 1.df;
x /= 10.df;
y = x;
y *= 10.df;
printf("%Hf %Hf\n",x,y);
return 0;
}
For example: "gcc d.c -ldfp". If you get "library not found for -ldfp" error, then read the following and complain to your software vendor.
3) You became a collateral damage in the mortal combat between IBM and Intel. They are both pushing two incompatible implementations of decimal floating point: IBM's DPD (densely packed decimal) and Intel's BID (binary integer decimal). The libdfp code is out there on the Internet, you'll need to search for it in places that aren't easily accessible to lawyers of the two concerns that I named above.