Java Integer Divide div(int dividend, int divisor)

Here you can find the source of div(int dividend, int divisor)

Description

div

License

Open Source License

Declaration

public static float div(int dividend, int divisor) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors://from  w  w  w  .j a  v  a 2s  .  c  om
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/

public class Main {
    public static float div(int dividend, int divisor) {
        return ((float) dividend) / ((float) divisor);
    }
}

Related

  1. div(int a, int b)
  2. div(int a, int b)
  3. div(int a, int b)
  4. div(int val, int coe)
  5. divce(long size, long divider, int i)
  6. divCeil(int a, int b)
  7. divCeil(int a, int b)