Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:13

0001 // D=1.00001 ~/opticks/sysrap/tests/float_double_test.sh 
0002 
0003 #include "ssys.h"
0004 #include <iostream>
0005 #include <iomanip>
0006 
0007 int main()
0008 {
0009     double d = ssys::getenvdouble("D", 1.00000100 ) ; 
0010     float  f = d ; 
0011 
0012     std::cout << " d " << std::fixed << std::setw(10) << std::setprecision(8) << d << std::endl ; 
0013     std::cout << " f " << std::fixed << std::setw(10) << std::setprecision(8) << f << std::endl ; 
0014 
0015     return 0 ; 
0016 
0017 }