mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
parent
a6fd7cc2b8
commit
2eb88c23d6
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
namespace xlnt {
|
namespace xlnt {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Takes in any number and outputs a string form of that number which will
|
/// Takes in any number and outputs a string form of that number which will
|
||||||
/// serialise and deserialise without loss of precision
|
/// serialise and deserialise without loss of precision
|
||||||
|
@ -84,8 +85,7 @@ constexpr typename std::common_type<NumberL, NumberR>::type min(NumberL lval, Nu
|
||||||
/// </summary>
|
/// </summary>
|
||||||
template <typename EpsilonType = float, // the type to extract epsilon from
|
template <typename EpsilonType = float, // the type to extract epsilon from
|
||||||
typename LNumber, typename RNumber> // parameter types (deduced)
|
typename LNumber, typename RNumber> // parameter types (deduced)
|
||||||
bool
|
bool float_equals(const LNumber &lhs, const RNumber &rhs,
|
||||||
float_equals(const LNumber &lhs, const RNumber &rhs,
|
|
||||||
int epsilon_scale = 20) // scale the "fuzzy" equality. Higher value gives a more tolerant comparison
|
int epsilon_scale = 20) // scale the "fuzzy" equality. Higher value gives a more tolerant comparison
|
||||||
{
|
{
|
||||||
// a type that lhs and rhs can agree on
|
// a type that lhs and rhs can agree on
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
#include "xlnt/xlnt_config.hpp"
|
#include "xlnt/xlnt_config.hpp"
|
||||||
#include "xlnt/utils/exceptions.hpp"
|
#include "xlnt/utils/exceptions.hpp"
|
||||||
#include "../source/detail/numeric_utils.hpp"
|
#include "xlnt/utils/numeric.hpp"
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
namespace xlnt {
|
namespace xlnt {
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
#include <xlnt/xlnt_config.hpp>
|
#include <xlnt/xlnt_config.hpp>
|
||||||
#include <xlnt/utils/optional.hpp>
|
#include <xlnt/utils/optional.hpp>
|
||||||
#include "../source/detail/numeric_utils.hpp"
|
#include <xlnt/utils/numeric.hpp>
|
||||||
|
|
||||||
namespace xlnt {
|
namespace xlnt {
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// @author: see AUTHORS file
|
// @author: see AUTHORS file
|
||||||
|
|
||||||
#include <detail/header_footer/header_footer_code.hpp>
|
#include <detail/header_footer/header_footer_code.hpp>
|
||||||
#include <detail/numeric_utils.hpp>
|
//#include <detail/numeric_utils.hpp>
|
||||||
|
|
||||||
namespace xlnt {
|
namespace xlnt {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#include <xlnt/utils/optional.hpp>
|
#include <xlnt/utils/optional.hpp>
|
||||||
#include <detail/implementations/format_impl.hpp>
|
#include <detail/implementations/format_impl.hpp>
|
||||||
#include <detail/implementations/hyperlink_impl.hpp>
|
#include <detail/implementations/hyperlink_impl.hpp>
|
||||||
#include "../numeric_utils.hpp"
|
//#include "../numeric_utils.hpp"
|
||||||
|
|
||||||
namespace xlnt {
|
namespace xlnt {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
|
@ -33,10 +33,10 @@
|
||||||
#include <detail/serialization/vector_streambuf.hpp>
|
#include <detail/serialization/vector_streambuf.hpp>
|
||||||
#include <detail/serialization/xlsx_producer.hpp>
|
#include <detail/serialization/xlsx_producer.hpp>
|
||||||
#include <detail/serialization/zstream.hpp>
|
#include <detail/serialization/zstream.hpp>
|
||||||
#include <detail/numeric_utils.hpp>
|
|
||||||
#include <xlnt/cell/cell.hpp>
|
#include <xlnt/cell/cell.hpp>
|
||||||
#include <xlnt/cell/hyperlink.hpp>
|
#include <xlnt/cell/hyperlink.hpp>
|
||||||
#include <xlnt/packaging/manifest.hpp>
|
#include <xlnt/packaging/manifest.hpp>
|
||||||
|
#include <xlnt/utils/numeric.hpp>
|
||||||
#include <xlnt/utils/path.hpp>
|
#include <xlnt/utils/path.hpp>
|
||||||
#include <xlnt/utils/scoped_enum_hash.hpp>
|
#include <xlnt/utils/scoped_enum_hash.hpp>
|
||||||
#include <xlnt/workbook/workbook.hpp>
|
#include <xlnt/workbook/workbook.hpp>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// @license: http://www.opensource.org/licenses/mit-license.php
|
// @license: http://www.opensource.org/licenses/mit-license.php
|
||||||
// @author: see AUTHORS file
|
// @author: see AUTHORS file
|
||||||
#include <xlnt/worksheet/page_margins.hpp>
|
#include <xlnt/worksheet/page_margins.hpp>
|
||||||
#include "detail/numeric_utils.hpp"
|
#include <xlnt/utils/numeric.hpp>
|
||||||
|
|
||||||
namespace xlnt {
|
namespace xlnt {
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// @license: http://www.opensource.org/licenses/mit-license.php
|
// @license: http://www.opensource.org/licenses/mit-license.php
|
||||||
// @author: see AUTHORS file
|
// @author: see AUTHORS file
|
||||||
#include <xlnt/worksheet/page_setup.hpp>
|
#include <xlnt/worksheet/page_setup.hpp>
|
||||||
#include "detail/numeric_utils.hpp"
|
#include <xlnt/utils/numeric.hpp>
|
||||||
|
|
||||||
namespace xlnt {
|
namespace xlnt {
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
#include <xlnt/worksheet/column_properties.hpp>
|
#include <xlnt/worksheet/column_properties.hpp>
|
||||||
#include <detail/constants.hpp>
|
#include <detail/constants.hpp>
|
||||||
#include <detail/default_case.hpp>
|
#include <detail/default_case.hpp>
|
||||||
#include <detail/numeric_utils.hpp>
|
#include <xlnt/utils/numeric.hpp>
|
||||||
#include <detail/unicode.hpp>
|
#include <detail/unicode.hpp>
|
||||||
#include <detail/implementations/cell_impl.hpp>
|
#include <detail/implementations/cell_impl.hpp>
|
||||||
#include <detail/implementations/workbook_impl.hpp>
|
#include <detail/implementations/workbook_impl.hpp>
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
// @license: http://www.opensource.org/licenses/mit-license.php
|
// @license: http://www.opensource.org/licenses/mit-license.php
|
||||||
// @author: see AUTHORS file
|
// @author: see AUTHORS file
|
||||||
|
|
||||||
#include "../../source/detail/numeric_utils.hpp"
|
#include <xlnt/utils/numeric.hpp>
|
||||||
#include <helpers/test_suite.hpp>
|
#include <helpers/test_suite.hpp>
|
||||||
|
|
||||||
class numeric_test_suite : public test_suite
|
class numeric_test_suite : public test_suite
|
||||||
|
|
Loading…
Reference in New Issue
Block a user