- Is there a loss in precision when using
BigDecimal
multiplied bysin
,cos
,tan
or any other trigonometric methods? - Is it valid to use
BigDecimal
with rational numbers? - I know,
BigDecimal
is used for "precision currency calculations" (Java BigDecimal trigonometric methods). I know, there are projects like https://github.com/eobermuhlner/big-math or http://www.apfloat.org/. Where lies the difference when using double for that withoutBigDecimal
? Because havingBigDecimal
and converting to double only because I need theexp
of it, does this makes sense. Precision is lost when using trigonometric methods. Or not?
The question is: Does it even make sense to use BigDecimal
with "rational numbers"?