Price.usd constructor

Price.usd(
  1. double amount
)

Constructs a Price with USD currency of the provided amount.

Implementation

Price.usd(double amount) : sum = Sum(amount), currency = Currency('USD');