fixed rounding bug for Win (Issue #9)