toInt static method

double toInt(
  1. double x
)

Implementation

static double toInt( double x ){
	if( x < 0.0 ){
		return ceil( x );
	}
	return floor( x );
}