question: public static long determineCeilingFromMaxValue ( long number , int yNumOfDivs ) { long tempInt = number ; tempInt = tempInt / 5 + tempInt ; if ( tempInt < 100 ) { while ( tempInt % yNumOfDivs != 0 ) { tempInt ++ ; } return tempInt ; } else { int counter = 0 ; String numStr = "" + number ; for ( int i = 0 ; i < numStr . length ( ) - 2 ; i ++ ) { tempInt = tempInt / 10 ; counter ++ ; } tempInt ++ ; while ( tempInt % yNumOfDivs != 0 ) { tempInt ++ ; } return ( long ) Math . pow ( 10 , counter ) * tempInt ; } }
target:  Returns a integer for the maximum y value to be used by the graph that is divisible by the number of y scale divisions.