On Friday, 10 June 2016 at 09:31:42 UTC, Chris wrote:
Something like`void main() { // Replace anything that looks like a real // number with the rounded equivalent. stdin .byLine .map!(l => l.replaceAll!(c => c.hit.round) (reFloatingPoint)) .each!writeln; } `
That's a best practice that requires some learning and discipline to use. A newbie won't write such code.