#define Round( x ) ( ( x ) >= 0 ? ( int ) ( ( x ) + 0.5 ) : ( int ) ( ( x ) - 0.5 ) ) int main ( void ) { int ix, iy; float fx = 1.85; float fy = -1.85; ix = ( int ) ( fx ); //遵循1 ix = Round ( fx ); //遵循2 iy = ( int ) ( fy ); //遵循3 iy = Round ( fy ); //遵循4 return ( 0 ); }