<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "JavaScriptCore",
  "identifier" : "/documentation/JavaScriptCore/JSValue/init(newBigIntFrom:in:)-r38z",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "JavaScriptCore"
    ],
    "preciseIdentifier" : "c:objc(cs)JSValue(cm)valueWithNewBigIntFromDouble:inContext:"
  },
  "title" : "init(newBigIntFrom:in:)"
}
-->

# init(newBigIntFrom:in:)

```
init?(newBigIntFrom value: Double, in context: JSContext)
```

## Parameters

`value`

The value of the BigInt JavaScript value being created.

`context`

The JSContext to which the resulting JSValue belongs.

## Return Value

The JSValue representing a JavaScript value with type BigInt.

## Discussion

\abstract Create a new BigInt value from a double.
\discussion If the value is not an integer, an exception is thrown.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)