int function ( float arg0 ) { return ( int ) ( arg0 + ( arg0 < 0.0f ? - 0.5f : 0.5f ) ) ; }
ends up being a bit faster than math #round float . this merely rounds its argument to the nearest int , where x. 5 rounds up to x +1 . semantics of this shortcut differ slightly from math #round float in that half rounds down for negativevalues . -2.5 rounds to -3 , not -2 . for purposes here it makes no difference . concode_field_sep PlaceHolder placeHolder concode_field_sep float distance concode_elem_sep float distance concode_elem_sep int sum