static int roundNo ( float num ) {
  return ( int ) ( num < 0 ? num - 0.5 : num + 0.5 ) ;
}

static int roundNo ( float num ) { return ( int ) ( num < 0 ? num - 0.5 : num + 0.5 ) ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (floating_point_type) name: (identifier))) body: (block (return_statement (cast_expression type: (integral_type) value: (parenthesized_expression (ternary_expression condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) consequence: (binary_expression left: (identifier) right: (decimal_floating_point_literal)) alternative: (binary_expression left: (identifier) right: (decimal_floating_point_literal))))))))