make cost curve rounding more precise
Merge pull request #13 from cmakler/cost-curve-rounding

make cost curve rounding more precise