output result for double calculator