Katzlab dd76ab1d12 Added PTL2 Scripts
These are PTL2 files from Auden 2/9
2023-02-14 11:20:52 -05:00

18 lines
375 B
C++

// we want to make sure that we are using the doubleRep class with DOUBLEREP enabled.
#define DOUBLEREP t
#include "../doubleRep.cpp"
int main()
{
double d=5.352e-30;
doubleRep k;
k= d;
k.output(cout);cout<<endl;
cout << k.mantissa() <<" "<< k.expon() <<endl<<endl;
cout <<"as double "<<d<<endl;
cout <<"as doubleRep "<<convert(k)<<endl;
return(0);
}