#include using namespace std; void to2(int n){ string s="00000000"; int t=7; while(n){ s[t--]='0'+n%2; n/=2; } cout<>s){ if(s.find('.')