src/Convert-math.cpp
double Convert::nearIntQuantize(double value, double delta) {
	if ((value + delta) - int(value+delta)  < delta*2) {
		value = (int)(value+delta);
	}
	return value;
}
//////////////////////////////
//
// Convert::nearIntQuantize -- avoid small deviations from integer values.
//    devault value: delta = 0.00001
//
:nearIntQuantize -- avoid small deviations from integer values.
devault value: delta = 0.00001
: nearIntQuantize -- avoid small deviations from integer values . devault value : delta = 0 . 00001
double Convert::nearIntQuantize(double value, double delta) {
	if ((value + delta) - int(value+delta)  < delta*2) {
		value = (int)(value+delta);
	}
	return value;
}
double Convert :: nearIntQuantize ( double value , double delta ) { if ( ( value + delta ) - int ( value + delta ) < delta * 2 ) { value = ( int ) ( value + delta ) ; } return value ; }
Convert::nearIntQuantize -- avoid small deviations from integer values.
Convert :: nearIntQuantize -- avoid small deviations from integer values .