TermOx
nearly_equal.hpp
1 #ifndef TERMOX_WIDGET_WIDGETS_DETAIL_NEARLY_EQUAL_HPP
2 #define TERMOX_WIDGET_WIDGETS_DETAIL_NEARLY_EQUAL_HPP
3 namespace ox::detail {
4 
6 [[nodiscard]] auto is_nearly_equal(double a, double b) -> bool;
7 
9 [[nodiscard]] auto is_nearly_whole(double value) -> bool;
10 
12 
14 [[nodiscard]] auto ceil_if_nearly_whole(double value) -> double;
15 
16 } // namespace ox::detail
17 #endif // TERMOX_WIDGET_WIDGETS_DETAIL_NEARLY_EQUAL_HPP