-
-
Save iyengarajay/d7efa92b08dd2e0bf1a72832d4b56b3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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