If its value at 0 th index is less than min value than either 10 , 100 , 1000 ... can 't be expressed
if ( temp < min ) { document . write ( 1 ) ; for ( i = 1 ; i <= temp + 1 ; i ++ ) document . write ( 0 ) ; }