Prev | Next |
i = Integer(x)
i
has prototype
int i
x
has either of the following prototypes:
const float &x
const double &x
the fractional part is dropped to form the integer value.
For example, if
x
is 1.5,
i
is 1.
In general, if @(@
x \geq 0
@)@,
i
is the
greatest integer less than or equal
x
.
If @(@
x \leq 0
@)@,
i
is the
smallest integer greater than or equal
x
.
x
has either of the following prototypes:
const std::complex<float> &x
const std::complex<double> &x
The result
i
is given by
i = Integer(x.real())
x
has either of the following prototypes:
const AD<Base> &x
const VecAD<Base>::reference &x
Base
must support the Integer
function and
the conversion has the same meaning as for
Base
.
Base
operation sequence
.