Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Convert from double
to int
.
More...
#include <Teuchos_as.hpp>
Static Public Member Functions | |
static int | convert (const double t) |
Convert the given double to an int . More... | |
static int | safeConvert (const double t) |
Convert the given double to an int , checking for overflow first. More... | |
Convert from double
to int
.
Definition at line 1179 of file Teuchos_as.hpp.
|
inlinestatic |
Convert the given double
to an int
.
int
. You should use safeConvert() if you aren't sure that the given value fits in an int
. Definition at line 1186 of file Teuchos_as.hpp.
|
inlinestatic |
Convert the given double
to an int
, checking for overflow first.
Definition at line 1193 of file Teuchos_as.hpp.