# Change the datatype returned from pow() function

**URL:** <https://discourse.processing.org/t/change-the-datatype-returned-from-pow-function/4771>\
**Category:** Beginners\
**Created:** [October 23, 2018, 11:06am UTC](https://discourse.processing.org/t/change-the-datatype-returned-from-pow-function/4771 "2018-10-23T11:06:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cowhead](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@Cowhead](https://discourse.processing.org/u/Cowhead)\
**Post date:** [October 23, 2018, 11:06am UTC](https://discourse.processing.org/t/change-the-datatype-returned-from-pow-function/4771/1 "2018-10-23T11:06:23Z")

</div>

I was wondering if it was possible to change the datatype returned from the pow() function and how to possibly do this. or if i have to make my own function. i need the pow() function to return a double instead of a float.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [October 23, 2018, 11:35am UTC](https://discourse.processing.org/t/change-the-datatype-returned-from-pow-function/4771/2 "2018-10-23T11:35:11Z")

</div>

Math.**pow()** -\> [Docs.Oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#pow(double,double)](http://Docs.Oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#pow(double,double))
