Method abs(long a)
Return type: long
Member of: java.lang.Math
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 return Math.abs((((DeltaTimeCacheValidity)validity).getCachedDateTime() - this.cachedDateTime)) < this.timeInCache;
2 Math.abs(result - expectedResult) <= tolerance);
3 if (Math.abs(cal1.getTime().getTime() - cal2.getTime().getTime()) > delta) {
4 doSleep(Math.abs(s_random.nextLong()) % maximumTime);
5 diff = Math.abs(diff);
6 return new Long(Math.abs(rnd.nextLong()));
7 if ( Math.abs( nowTime - dateTime ) < 183L * 24L * 60L * 60L * 1000L )
8 long widthWithMargin = Math.abs(width) + totalMarginWidth;
9 result = Math.abs(RandomUtils.nextLong());
10 if (Math.abs (now.getTime() - previousYear.getTime()) <
11 test = Math.abs(soundbytes[i]);
12 if (Math.abs(adjustment) > 10000L) {
13 return (value2 >= (value1-((Math.abs(value1)*(double)APPROX_CRITERIA)/(double)100))
14 nodeValue = Math.abs(nodeValue);
15 case 63 /* gcd */: return (nArgs==0)?U.toNum(0):U.toNum(Math.abs(U.gcd((Pair)x)));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.