Here you can find the source of abs(float value)
public static float abs(float value)
//package com.java2s; //License from project: Open Source License public class Main { public static float abs(float value) { return value >= 0.0F ? value : -value; }/*from w w w . j a v a 2 s .com*/ }