2 // Copyright 2010 Paul A. Bristow
4 // Distributed under the Boost Software License, Version 1.0. (See
5 // accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
8 /* Temporary test program to discover which platforms support
16 This is needed to produce or select a macro to avoid compilation failure in Boost.Test
17 for platforms that do not include either or both of these.
19 BOOST_NO_NUMERIC_LIMITS_LOWEST is suitable but deprecated.
24 #5758: Boost.Test Floating-point comparison diagnostic output does not support radix 10.
28 #include <boost/config.hpp>
29 #include <boost/version.hpp>
36 std::cout << "Platform: " << BOOST_PLATFORM << '\n'
37 << "Compiler: " << BOOST_COMPILER << '\n'
38 << "STL : " << BOOST_STDLIB << '\n'
39 << "Boost : " << BOOST_VERSION/100000 << "."
40 << BOOST_VERSION/100 % 1000 << "."
41 << BOOST_VERSION % 100 << std::endl;
43 int digits10 = std::numeric_limits<double>::digits10;
44 int max_digits10 = std::numeric_limits<double>::max_digits10;
46 std::cout << "std::numeric_limits<double>::digits10 = " << digits10 << std::endl;
48 std::cout << "std::numeric_limits<double>::max_digits10 = " << max_digits10 << std::endl;
57 Description: Autorun "J:\Cpp\MathToolkit\test\Math_test\Debug\ztest_max_digits10.exe"
59 Compiler: Microsoft Visual C++ version 10.0
60 STL : Dinkumware standard library version 520
62 std::numeric_limits<double>::digits10 = 15
63 std::numeric_limits<double>::max_digits10 = 17