Add result type selection to .calc command