Find the nearest power of 2 for the current frequency
if ( ( freq [ key ] - a ) < ( b - freq [ key ] ) ) { Console . Write ( a + " STRNEWLINE " ) ; } else { Console . Write ( b + " STRNEWLINE " ) ; } } }