A simple currency calculator in D