# Parameters Setting in BGV schems

**URL:** <https://openfhe.discourse.group/t/parameters-setting-in-bgv-schems/1348>\
**Category:** Library Questions\
**Created:** [June 13, 2024, 8:46am UTC](https://openfhe.discourse.group/t/parameters-setting-in-bgv-schems/1348 "2024-06-13T08:46:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WoWblk](https://avatars.discourse-cdn.com/v4/letter/w/f19dbf/32.png) [@WoWblk](https://openfhe.discourse.group/u/WoWblk)\
**Post date:** [June 13, 2024, 8:46am UTC](https://openfhe.discourse.group/t/parameters-setting-in-bgv-schems/1348/1 "2024-06-13T08:46:26Z")

</div>

Hi I’m using BGVRNS, and I set the parameters as following:

```auto

    parameters.SetMultiplicativeDepth(5);
    parameters.SetPlaintextModulus(256);
    parameters.SetScalingModSize(60); 

```

It will pop up an error:

```auto
what(): /data/homomorphic/openfhe-development/src/core/include/math/hal/intnat/ubintnat.h:l.649:ComputeMu<>(): NativeIntegerT ComputeMu: Divide by zero

```

I’m wondering Is it a bug? Or any specific reason for that?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ypolyakov](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/ypolyakov/32/47_2.png) [@ypolyakov](https://openfhe.discourse.group/u/ypolyakov)\
**Post date:** [June 13, 2024, 10:48pm UTC](https://openfhe.discourse.group/t/parameters-setting-in-bgv-schems/1348/2 "2024-06-13T22:48:18Z")

</div>

Please try the **dev** branch (we will merge to main within 2 weeks as part of the v1.2.0 release). The validator in the **dev** should throw a more meaningful exception. The configuration you are tying is invalid.
