From e0737c56c1e384e05064a0c6e1ac46979371041b Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Wed, 19 Dec 2018 22:58:32 +0100 Subject: New upstream version 2.0.0+repack --- .../math/doc/html/math_toolkit/rounding/modf.html | 83 +++++++++++++++++++++ .../math/doc/html/math_toolkit/rounding/round.html | 83 +++++++++++++++++++++ .../math/doc/html/math_toolkit/rounding/trunc.html | 85 ++++++++++++++++++++++ 3 files changed, 251 insertions(+) create mode 100644 boost/libs/math/doc/html/math_toolkit/rounding/modf.html create mode 100644 boost/libs/math/doc/html/math_toolkit/rounding/round.html create mode 100644 boost/libs/math/doc/html/math_toolkit/rounding/trunc.html (limited to 'boost/libs/math/doc/html/math_toolkit/rounding') diff --git a/boost/libs/math/doc/html/math_toolkit/rounding/modf.html b/boost/libs/math/doc/html/math_toolkit/rounding/modf.html new file mode 100644 index 00000000..1f6679fe --- /dev/null +++ b/boost/libs/math/doc/html/math_toolkit/rounding/modf.html @@ -0,0 +1,83 @@ + + + +Integer and Fractional Part Splitting (modf) + + + + + + + + + + + + + + + +
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
+
+
+PrevUpHomeNext +
+
+ +
#include <boost/math/special_functions/modf.hpp>
+
template <class T>
+T modf(const T& v, T* ipart);
+
+template <class T, class Policy>
+T modf(const T& v, T* ipart, const Policy&);
+
+template <class T>
+T modf(const T& v, int* ipart);
+
+template <class T, class Policy>
+T modf(const T& v, int* ipart, const Policy&);
+
+template <class T>
+T modf(const T& v, long* ipart);
+
+template <class T, class Policy>
+T modf(const T& v, long* ipart, const Policy&);
+
+template <class T>
+T modf(const T& v, long long* ipart);
+
+template <class T, class Policy>
+T modf(const T& v, long long* ipart, const Policy&);
+
+

+ The modf functions store + the integer part of v in *ipart and return the fractional part of + v. The sign of the integer and fractional parts are + the same as the sign of v. +

+

+ If the argument v is either non-finite or else outside + the range of the result type, then returns the result of rounding_error: + by default this throws an instance of boost::math::rounding_error. +

+
+ + + +
+
+
+PrevUpHomeNext +
+ + diff --git a/boost/libs/math/doc/html/math_toolkit/rounding/round.html b/boost/libs/math/doc/html/math_toolkit/rounding/round.html new file mode 100644 index 00000000..2f55938c --- /dev/null +++ b/boost/libs/math/doc/html/math_toolkit/rounding/round.html @@ -0,0 +1,83 @@ + + + +Rounding Functions + + + + + + + + + + + + + + + +
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
+
+
+PrevUpHomeNext +
+
+ +
#include <boost/math/special_functions/round.hpp>
+
template <class T>
+T round(const T& v);
+
+template <class T, class Policy>
+T round(const T& v, const Policy&);
+
+template <class T>
+int iround(const T& v);
+
+template <class T, class Policy>
+int iround(const T& v, const Policy&);
+
+template <class T>
+long lround(const T& v);
+
+template <class T, class Policy>
+long lround(const T& v, const Policy&);
+
+template <class T>
+long long llround(const T& v);
+
+template <class T, class Policy>
+long long llround(const T& v, const Policy&);
+
+

+ These functions return the closest integer to the argument v. +

+

+ Halfway cases are rounded away from zero, regardless of the current rounding + direction. +

+

+ If the argument v is either non-finite or else outside + the range of the result type, then returns the result of rounding_error: + by default this throws an instance of boost::math::rounding_error. +

+
+ + + +
+
+
+PrevUpHomeNext +
+ + diff --git a/boost/libs/math/doc/html/math_toolkit/rounding/trunc.html b/boost/libs/math/doc/html/math_toolkit/rounding/trunc.html new file mode 100644 index 00000000..33c28a0a --- /dev/null +++ b/boost/libs/math/doc/html/math_toolkit/rounding/trunc.html @@ -0,0 +1,85 @@ + + + +Truncation Functions + + + + + + + + + + + + + + + +
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
+
+
+PrevUpHomeNext +
+
+ +
#include <boost/math/special_functions/trunc.hpp>
+
template <class T>
+T trunc(const T& v);
+
+template <class T, class Policy>
+T trunc(const T& v, const Policy&);
+
+template <class T>
+int itrunc(const T& v);
+
+template <class T, class Policy>
+int itrunc(const T& v, const Policy&);
+
+template <class T>
+long ltrunc(const T& v);
+
+template <class T, class Policy>
+long ltrunc(const T& v, const Policy&);
+
+template <class T>
+long long lltrunc(const T& v);
+
+template <class T, class Policy>
+long long lltrunc(const T& v, const Policy&);
+
+

+ The trunc functions round their argument to the integer value, nearest to + but no larger in magnitude than the argument. +

+

+ For example itrunc(3.7) would + return 3 and ltrunc(-4.6) + would return -4. +

+

+ If the argument v is either non-finite or else outside + the range of the result type, then returns the result of rounding_error: + by default this throws an instance of boost::math::rounding_error. +

+
+ + + +
+
+
+PrevUpHomeNext +
+ + -- cgit v1.2.3