vpiotr / decimal_for_cpp

Decimal data type for C++
273 stars 68 forks source link

Bug in toString #4

Closed rishid closed 11 years ago

rishid commented 11 years ago

The following code snippet returns an invalid string.

cout << "Test with <4> is: " << decimal<4>(-0.5) << endl;
vpiotr commented 11 years ago

Thanks for pointing this out. Error corrected, new test cases added.