Skip to content

Instantly share code, notes, and snippets.

Last active Nov 2, 2017
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