# cannot convert BigInt to Number❗️

[JS](../..) ⟩ [error](..) ⟩ [TypeError]() ⟩ cannot convert BigInt to Number:exclamation:

{% hint style="danger" %}
[<mark style="color:red;">**TypeError**</mark>]()：[<mark style="color:yellow;">**cannot convert BigInt to Number**</mark>](no-bigint-to-num):exclamation:
{% endhint %}

{% tabs %}
{% tab title="💈範例" %}
* replit：[can't convert BigInt to Number](https://replit.com/@pegasusroe/cant-convert-BigInt-to-Number#index.js)

```javascript
const n = 40n;    // BigInt

+n;   // ⛔️ TypeError: Cannot convert a BigInt value to a number
```
{% endtab %}

{% tab title="👥 相關" %}
* [convert](../../val/type/convert "mention")： [bigint](../../val/prim/bigint "mention") -> [num](../../val/prim/num "mention")
* :star2:[Broken link](broken-reference "mention")
* :no\_entry:[no-sym-to-num](no-sym-to-num "mention")
* [unary](../../grammar/op/arithmetic/unary "mention") ⟩ unary plus (+)
{% endtab %}

{% tab title="📘 手冊" %}
* [TypeError: can't convert BigInt to number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cant_convert_BigInt_to_number)
{% endtab %}
{% endtabs %}
