|
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. | |
| static int | safeConvert (const double t) |
Convert the given double to an int, checking for overflow first. | |
Convert from double to int.
Definition at line 1184 of file Teuchos_as.hpp.
| static int Teuchos::ValueTypeConversionTraits< int, double >::convert | ( | const double | t | ) | [inline, static] |
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 1191 of file Teuchos_as.hpp.
| static int Teuchos::ValueTypeConversionTraits< int, double >::safeConvert | ( | const double | t | ) | [inline, static] |
Convert the given double to an int, checking for overflow first.
Definition at line 1198 of file Teuchos_as.hpp.
1.7.6.1