<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Bitcoin",
  "identifier" : "/documentation/Bitcoin/BTCAmount/init(btc:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Bitcoin"
    ],
    "preciseIdentifier" : "s:7Bitcoin9BTCAmountV3btcACSo9NSDecimala_tcfc"
  },
  "title" : "init(btc:)"
}
-->

# init(btc:)

Creates a `BTCAmount` from a BTC `Decimal` value.

```
init(btc: Decimal)
```

## Discussion> Note: Double literals (e.g., `BTCAmount(btc: 2.09999999)`) go through
> Double → Decimal conversion which may lose precision BEFORE rounding.
> For exact values, use `BTCAmount(btc: Decimal(string: "2.09999999")!)`.