Skip to content

Instantly share code, notes, and snippets.

Last active November 2, 2017 09:40
What would you like to do?
import java.math.BigDecimal;
public class FloatingPointCorrected {
public static void main(String[] args) {
System.out.println(new BigDecimal("0.1").add(new BigDecimal("0.2")));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment