# Integer to achieve Float

**URL:** <https://openfhe.discourse.group/t/integer-to-achieve-float/1751>\
**Category:** Library Questions\
**Created:** [November 27, 2024, 8:02am UTC](https://openfhe.discourse.group/t/integer-to-achieve-float/1751 "2024-11-27T08:02:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicol](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@Nicol](https://openfhe.discourse.group/u/Nicol)\
**Post date:** [November 27, 2024, 8:02am UTC](https://openfhe.discourse.group/t/integer-to-achieve-float/1751/1 "2024-11-27T08:02:56Z")

</div>

Hi, I’m currently working on a fingerprint project that accepts binary as input, encrypts the input, stores it in a file as a template, accepts another binary input as query, calls the template, compares the template with query input and outputs a matching score. After encoding and encrypting, is there a way I can carry out a division operation using the BFV scheme in OpenFHE-Python to output a float value as matching score, and if there isn’t any, please guide on how to achieve the matching score.  
Also, is there a way to decode the decrypted ciphertext

---

<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:** [November 27, 2024, 8:32pm UTC](https://openfhe.discourse.group/t/integer-to-achieve-float/1751/2 "2024-11-27T20:32:02Z")

</div>

CKKS is the right scheme for working real numbers (represented as floats). There is a method called `EvalDivide` there for homomorphic division.
