Add 'void' case. Combine 'double' and 'float' cases.