Converting a number to binary and back as a test in Java
Cryptic names

int n = 10;   
int m = 20;


Please give longer and more descriptive names to n and m

Overworked main

I would define outside of main

public static double FloatToBin(float n) {

}

public static double BinToFloat(bin n) {

}


So that main can contain the IO only.