Here you can find the source of Maximum(float x, float y)
Returns the maximum of two float values
Parameter | Description |
---|---|
x | A float |
y | A float |
public static float Maximum(float x, float y)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w .java 2 s. c o m * <p> * Returns the maximum of two float values * </p> * @param x A float * @param y A float * @return The maximum float in the comparison */ public static float Maximum(float x, float y) { if (x > y) return (x); else return (y); } }