My problem while I am converting Double to BigDecimal I am loosing original value. My requirement like input would be like Double val = 10435383974769502920d and want to convert like 10435.383974769502920 but getting below output. I have tried with Double BigDecimal..but no success
Double val = 10435383974769502920d;
System.out.println(BigDecimal.valueOf(val).movePointLeft(15));
output : 10435.383974769502