# How to set type (precision) of operations inside a function?

**URL:** <https://numba.discourse.group/t/how-to-set-type-precision-of-operations-inside-a-function/2989>\
**Category:** Community Support\
**Created:** [April 20, 2025, 5:13am UTC](https://numba.discourse.group/t/how-to-set-type-precision-of-operations-inside-a-function/2989 "2025-04-20T05:13:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nelson2005](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/nelson2005/32/47_2.png) [@nelson2005](https://numba.discourse.group/u/nelson2005)\
**Post date:** [April 20, 2025, 2:43pm UTC](https://numba.discourse.group/t/how-to-set-type-precision-of-operations-inside-a-function/2989/3 "2025-04-20T14:43:54Z")

</div>

This [topic](https://numba.discourse.group/t/numba-promotes-dtype-differently-to-numpy/2919) has come up [more](https://github.com/numba/numba/issues/7290) than once over the years. I don’t remember any great solutions beyond the suggestions to manage the types manually through casting.

---

_[View the full topic](https://numba.discourse.group/t/how-to-set-type-precision-of-operations-inside-a-function/2989)._
