# Float Precision

**URL:** <https://discourse.processing.org/t/float-precision/13836>\
**Category:** Beginners\
**Created:** [September 6, 2019, 3:56am UTC](https://discourse.processing.org/t/float-precision/13836 "2019-09-06T03:56:14Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [September 6, 2019, 9:10am UTC](https://discourse.processing.org/t/float-precision/13836/11 "2019-09-06T09:10:07Z")

</div>

> [@Is it possible higher precision than double?](https://discourse.processing.org/t/is-it-possible-higher-precision-than-double/13764/4):
>
> Make sure to use constants & methods from Math class only and all non-integer numerical literals are suffixed w/ d: warning[Docs.Oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html](http://Docs.Oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html) TAU → 2 \* Math.PI cos(PI) → Math.cos(Math.PI) -5.4 → -5.4d 1e3 → 1e3d

---

_[View the full topic](https://discourse.processing.org/t/float-precision/13836)._
