---
title: Java
code:
  - System.out.println(.1 + .2);
  - System.out.println(.1F + .2F);
result:
  - 0.30000000000000004
  - 0.3
---

Java has built-in support for arbitrary-precision numbers using the
[BigDecimal][1] class.

[1]: http://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html
