20 using UnsignedCostType = std::make_unsigned_t<CostType>;
22 UnsignedCostType AbsValue =
23 (Value < 0) ? -((UnsignedCostType)Value) : ((UnsignedCostType)Value);
24 UnsignedCostType WholeNumber = AbsValue / CostGranularity;
25 UnsignedCostType Remainder = AbsValue % CostGranularity;
28 UnsignedCostType RemainderHundreds = (Remainder * 100) / CostGranularity;
29 while (RemainderHundreds % 10 == 0 && RemainderHundreds)
30 RemainderHundreds /= 10;
32 if (RemainderHundreds)
33 OS <<
"." << RemainderHundreds;