Java Double Number Divide div(double a, double b)

Here you can find the source of div(double a, double b)

Description

Make divided of two double values.

License

Open Source License

Parameter

Parameter Description
a first double value
b second double value

Return

divided

Declaration

public static double div(double a, double b) 

Method Source Code

//package com.java2s;
/*//  w  ww.j  a  va2s  . co  m
 * Copyright (c) 2007-2016 AREasy Runtime
 *
 * This library, AREasy Runtime and API for BMC Remedy AR System, is free software ("Licensed Software");
 * you can redistribute it and/or modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either version 2.1 of the License,
 * or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * including but not limited to, the implied warranty of MERCHANTABILITY, NONINFRINGEMENT,
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
 */

public class Main {
    /**
     * Make divided of two double values. This method is created because Velocity
     * is not supporting basic operations with this data type
     * @param a first double value
     * @param b second double value
     * @return divided
     */
    public static double div(double a, double b) {
        return a / b;
    }

    /**
     * Make divided of two float values. This method is created because Velocity
     * is not supporting basic operations with this data type
     * @param a first float value
     * @param b second float value
     * @return divided
     */
    public static float div(float a, float b) {
        return a / b;
    }

    /**
     * Make divided of two long values. This method is created because Velocity
     * is not supporting basic operations with this data type
     * @param a first long value
     * @param b second long value
     * @return divided
     */
    public static float div(long a, long b) {
        return a / b;
    }
}

Related

  1. calculateRoundDoubleQuotientOfTowIntegerNumber(Integer dividend, Integer divisor)
  2. ceil_divide(float left, float right)
  3. div(double a, double b)
  4. div(double a, double b)
  5. div(double a, double b)
  6. div(Double dividend, Double quotient)
  7. div(double divisor, int dividend, int preciseFigures)
  8. div(double left, double right)
  9. div(final double a, final double b)