# convertNumericToJubjubScalar

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight-ntwrk/compact-runtime v0.21.0**](https://docs.midnight.network/api-reference/compact-runtime.md)

***

[@midnight-ntwrk/compact-runtime](https://docs.midnight.network/api-reference/compact-runtime/globals.md) / convertNumericToJubjubScalar

# Function: convertNumericToJubjubScalar()

```
function convertNumericToJubjubScalar(x): bigint;
```

Conversion of a native field or unsigned integer value to a JubjubScalar

The native field is BLS12-381 scalar, which has a larger field modulus than the Jubjub scalar field. The value is converted modulo the Jubjub scalar field modulus.

## Parameters[​](#parameters "Direct link to Parameters")

### x[​](#x "Direct link to x")

`bigint`

## Returns[​](#returns "Direct link to Returns")

`bigint`
