convert double to binary of string type