# What is the differences among firstModSize, scalingModSize and scalingFactor?

**URL:** <https://openfhe.discourse.group/t/what-is-the-differences-among-firstmodsize-scalingmodsize-and-scalingfactor/344>\
**Category:** Library Questions\
**Tags:** feature-requests, questions\
**Created:** [February 8, 2023, 8:44am UTC](https://openfhe.discourse.group/t/what-is-the-differences-among-firstmodsize-scalingmodsize-and-scalingfactor/344 "2023-02-08T08:44:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Caesar](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/caesar/32/63_2.png) [@Caesar](https://openfhe.discourse.group/u/Caesar)\
**Post date:** [February 8, 2023, 4:27pm UTC](https://openfhe.discourse.group/t/what-is-the-differences-among-firstmodsize-scalingmodsize-and-scalingfactor/344/2 "2023-02-08T16:27:21Z")

</div>

A bit of background information before answering your question.  
In CKKS, the ciphertext coefficient modulus at level l is Q\_l=q\_0 \cdot q\_1 \ldots \cdot q\_l, where q\_i's are prime integers of almost equal size.

`firstModSize` denotes the size of q\_0, a special modulus used to contain the actual payload information (your encrypted data).

`scalingModSize` denotes the size of the `scalingFactor` to control the underlying precision of the computation. In CKKS, input real data are scaled by the `scalingFactor` before getting encoded and encrypted.

---

_[View the full topic](https://openfhe.discourse.group/t/what-is-the-differences-among-firstmodsize-scalingmodsize-and-scalingfactor/344)._
