Parent Directory | Revision Log | Patch
revision 1.11 by ericb, Fri Feb 15 02:23:38 2002 UTC | revision 1.12 by ericb, Fri Feb 15 02:43:37 2002 UTC | |
---|---|---|
# | Line 156 public final class Math | Line 156 public final class Math |
156 | * @param d the number to take the absolute value of | * @param d the number to take the absolute value of |
157 | * @return the absolute value | * @return the absolute value |
158 | */ | */ |
159 | public static double abs(double dn) | public static double abs(double d) |
160 | { | { |
161 | return (d <= 0) ? 0 - d : d; | return (d <= 0) ? 0 - d : d; |
162 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |