fixed rounding in sin/cos with epsilon