Revision 5491 trunk/extensions/extGeoreferencing/src/org/gvsig/georeferencing/utils/MathUtils.java
MathUtils.java | ||
---|---|---|
42 | 42 |
* @return N?mero recortado |
43 | 43 |
*/ |
44 | 44 |
public static double tailDecimals(double num, int n){ |
45 |
long m = (int)Math.pow(10, n);
|
|
45 |
long m = (long)Math.pow(10, n);
|
|
46 | 46 |
num *= m; |
47 | 47 |
long aux = ((long)num); |
48 | 48 |
num = (double)((double)aux / (double)m); |
Also available in: Unified diff