C++ User's Guide

Values

r must be one of the following:

Value of r

Meaning 

nearest

Rounds towards the nearest number and breaks ties to even numbers. 

tozero

Rounds to zero. 

negative

Rounds to negative infinity. 

positive

Rounds to positive infinity.