11#include "CLHEP/Units/defs.h"
12#include "CLHEP/Units/PhysicalConstants.h"
18#if (defined __STRICT_ANSI__) || (defined _WIN32)
20#define M_PI 3.14159265358979323846
31 for (
int i=0; i<7; i++, m++) { assert(m ==
double(i)); }
32 assert(m != CLHEP::meter);
38 std::ostringstream os1, os2, os3, os4;
39 os1 << std::setprecision(8) << CLHEP::c_light;
41 if( os1.str() != os2.str() ) {
42 std::cout <<
"compare --" << os1.str() <<
"-- to --" << os2.str() <<
"--" << std::endl;
45 os3 << std::setprecision(16) << CLHEP::pi ;
46 os4 <<
"3.141592653589793";
47 if( os3.str() != os4.str() ) {
49 std::cout <<
"compare --" << os3.str() <<
"--" << std::endl;
50 std::cout <<
" to --" << os4.str() <<
"--" << std::endl;
51 std::cout <<
"M_PI --" << std::setprecision(16) << M_PI <<
"--" << std::endl;