@Test public void testPow10() { for (int i=-304; i<=304; i++) { assertEquals(Double.parseDouble("1E"+i), pow10(i), 0); } }
public static double pow10(final double x) { final int ix = (int) x; if (ix == x) { return pow10(ix); } else { return Math.pow(10, x); } }
XMath { public static double pow10(final double x) { final int ix = (int) x; if (ix == x) { return pow10(ix); } else { return Math.pow(10, x); } } }
XMath { public static double pow10(final double x) { final int ix = (int) x; if (ix == x) { return pow10(ix); } else { return Math.pow(10, x); } } private  XMath(); }
XMath { public static double pow10(final double x) { final int ix = (int) x; if (ix == x) { return pow10(ix); } else { return Math.pow(10, x); } } private  XMath(); static double pow10(final double x); static strictfp double pow10(final int x); static int sgn(final double x); static int sgn(final float x); static int sgn(long x); static int sgn(int x); static short sgn(short x); static byte sgn(byte x); static double roundIfAlmostInteger(final double value, int maxULP); static double trimDecimalFractionDigits(final double value, final int maxULP, int n); static int countDecimalFractionDigits(final double value); static float toNaN(int index); static synchronized int primeNumber(final int index); static int[] divisors(int number); }
XMath { public static double pow10(final double x) { final int ix = (int) x; if (ix == x) { return pow10(ix); } else { return Math.pow(10, x); } } private  XMath(); static double pow10(final double x); static strictfp double pow10(final int x); static int sgn(final double x); static int sgn(final float x); static int sgn(long x); static int sgn(int x); static short sgn(short x); static byte sgn(byte x); static double roundIfAlmostInteger(final double value, int maxULP); static double trimDecimalFractionDigits(final double value, final int maxULP, int n); static int countDecimalFractionDigits(final double value); static float toNaN(int index); static synchronized int primeNumber(final int index); static int[] divisors(int number);  }