Java Number Negate negative(float a)

Here you can find the source of negative(float a)

Description

negative

License

Open Source License

Return

true if the value is negative.

Declaration

public static boolean negative(float a) 

Method Source Code

//package com.java2s;
/**************************************************************************************
 * util_tree/*from w w  w .j  a v  a  2 s.  c o  m*/
 * Copyright (c) 2014-2017 National University of Colombia, https://github.com/remixlab
 * @author Jean Pierre Charalambos, http://otrolado.info/
 *
 * All rights reserved. Library that eases the creation of interactive
 * scenes, released under the terms of the GNU Public License v3.0
 * which is available at http://www.gnu.org/licenses/gpl.html
 **************************************************************************************/

public class Main {
    public static float FLOAT_EPS = Float.MIN_VALUE;

    /**
     * @return true if the value is negative.
     */
    public static boolean negative(float a) {
        return a <= -FLOAT_EPS;
    }
}

Related

  1. negate(String value)
  2. negateExact(double a)
  3. negateExpression(String expression)
  4. negateInPlace(float[] in)
  5. Negation(String StartIP, String netmask)
  6. negative(int b)
  7. negative(Number n)
  8. negativeInf()
  9. negativePart(final double[] data)