bitpay/bitcore — pull request #859 by yemel (2014-12-25 22:16:18+00:00)
Title: Add from/to fiat methods on Unit class

This PR adds convenient methods for creating units from and to fiat currency by providing the current exchange rate.

```
var unit = Unit.fromFiat(12.5, 350);
var fiat = Unit.fromBTC(1.2).toFiat(350);
```