Java Number Power power(int val, int numOfPower)

Here you can find the source of power(int val, int numOfPower)

Description

power

License

Open Source License

Declaration

private static int power(int val, int numOfPower) 

Method Source Code

//package com.java2s;

public class Main {
    private static int power(int val, int numOfPower) {
        for (int i = 0; i < numOfPower; i++) {
            val *= 10;
        }/*from ww w.j a v  a  2 s  . c o  m*/
        return val;
    }
}

Related

  1. powDecay(double x, double y)
  2. power(double d, int exp)
  3. power(final long x, final long n, final long p)
  4. power(int base, int power)
  5. power(int i)
  6. power(int x, int n)
  7. power(long x, long y)
  8. power2(int power)
  9. powerConverter(String _varSymbol)