#include #include "num2bin.h" using namespace std; using namespace ca_uwaterloo_alumni_dwharder; int main() { float x = 3.1415926535897932385; double y = 3.1415926535897932385; cout << "Pi:" << endl; cout << num2bin( x ) << endl; cout << num2bin( y ) << endl << endl; x = 5.9742e24; y = 5.9742e24; cout << "Mass of the earth (kg):" << endl; cout << num2bin( x ) << endl; cout << num2bin( y ) << endl << endl; x = 1.67262158e-27; y = 1.67262158e-27; cout << "Mass of a free neutron (kg):" << endl; cout << num2bin( x ) << endl; cout << num2bin( y ) << endl << endl; short i = 42; int j = 42; long k = 42; cout << "42:" << endl; cout << num2bin( i ) << endl; cout << num2bin( j ) << endl; cout << num2bin( k ) << endl << endl; i = -42; j = -42; k = -42; cout << "-42:" << endl; cout << num2bin( i ) << endl; cout << num2bin( j ) << endl; cout << num2bin( k ) << endl; return 0; }