When the precision is 0, i.e. dec::decimal<0>, then printing this value will print a decimal point and one decimal place. I think it should not print either of those. This patch just skips printing the decimal point and anything following if the precision is 0.
When the precision is 0, i.e. dec::decimal<0>, then printing this value will print a decimal point and one decimal place. I think it should not print either of those. This patch just skips printing the decimal point and anything following if the precision is 0.