#include int a = 1; int b = 100; int c = 100000; int d = -1; int e = 0; float xe = 0.0; float xa = 1.0; float xb = 100.0; float xd = -1.0; float xc = 100000.0; float xf = -1.75; extern float itof( int ); extern int cmpfloat(float, float); int main() { if ( cmpfloat ( itof( a ) , xa ) ) printf( "Test1 OK\n"); if ( cmpfloat ( itof( b ) , xb ) ) printf( "Test2 OK\n"); if ( cmpfloat ( itof( c ) , xc ) ) printf( "Test3 OK\n"); if ( cmpfloat ( itof( d ) , xd ) ) printf( "Test4 OK\n"); if ( cmpfloat ( itof( e ) , xe ) ) printf( "Test5 OK\n"); return 0; }