# Issue with default rounding numbers in Processing Java Mode

**URL:** <https://discourse.processing.org/t/issue-with-default-rounding-numbers-in-processing-java-mode/22280>\
**Category:** Beginners\
**Created:** [June 30, 2020, 12:19pm UTC](https://discourse.processing.org/t/issue-with-default-rounding-numbers-in-processing-java-mode/22280 "2020-06-30T12:19:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [June 30, 2020, 1:12pm UTC](https://discourse.processing.org/t/issue-with-default-rounding-numbers-in-processing-java-mode/22280/2 "2020-06-30T13:12:45Z")

</div>

The result you get is not too surprising, because the pre-processor does not know how to deal with the numbers (are they integer are they float). You need to give it a bit of help:-

```java
float b=(10+(500/1000.0f))/60;
float a=(2+b)*6;
println(a);
println(nf(1/3.0f, 2, 10));

```

But even then the result is bit strange

```bash
 13.049999
00.3333333433                                                                                                                                                                                                          

```

---

_[View the full topic](https://discourse.processing.org/t/issue-with-default-rounding-numbers-in-processing-java-mode/22280)._
