Fix rounding to be consistent with upstream
Fix rounding to be consistent with upstream

The upstream (Java) implementation casts to long in a few places, which
truncates floating point numbers. This logic was missing from this port.

tylertreat/hdrhistogram,ahothan/hdrhistogram,codahale/hdrhistogram,ahothan/hdrhistogram