Does anyone have code to transfer double number to array of characters for writing to Flash memmory
Indeed, the Flash neither knows nor cares anything about the meaning of the data - all it sees are bytes to be written to addresses.
Whether those bytes represent executable code, ASCII text, numbers, of anything else is entirely irrelevant to the Flash.