Thursday, August 11, 2011

Is it possible in java to put a number to a power that is NOT double? I want to use integers.?

i want to use an integer variable to raise it to a power and yes it must be an integer. (10 * 10^dl) is my problem. math.pow(double, double) only works with doubles obviously. otherwise i can just use switch statements for possible variable values but i'd like to do this instead. can anybody help?

No comments:

Post a Comment