We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca66d89 commit 6e837dcCopy full SHA for 6e837dc
include/boost/decimal/detail/cmath/rescale.hpp
@@ -64,6 +64,14 @@ constexpr auto rescale(T val, int precision = 0) noexcept
64
return {sig, exp, isneg};
65
}
66
67
+BOOST_DECIMAL_EXPORT template <typename T>
68
+[[deprecated("Renamed to rescale to match existing literature")]]
69
+constexpr auto trunc_to(T val, int precision = 0) noexcept
70
+ BOOST_DECIMAL_REQUIRES(detail::is_decimal_floating_point_v, T)
71
+{
72
+ return rescale(val, precision);
73
+}
74
+
75
} // namespace decimal
76
} // namespace boost
77
0 commit comments