Here you can find the source of div(double a, double b)
public static double div(double a, double b)
//package com.java2s; //License from project: Open Source License public class Main { public static double div(double a, double b) { if (b == 0.0) { return 0.0; } else {// w w w.ja va 2 s. c o m return a / b; } } }