[Solved] BigDecimal issue with long and lat
It should be used a.setScale(14, RoundingMode.HALF_UP) since after 14th pos. zeros are not significative at the end will be -71.07126540000002 solved BigDecimal issue with long and lat
It should be used a.setScale(14, RoundingMode.HALF_UP) since after 14th pos. zeros are not significative at the end will be -71.07126540000002 solved BigDecimal issue with long and lat
If the diameter of the area of is not more than a few kilometers (or miles if you insist) then 1) transform the coordinates to x,y space with unit meters 2) Use the simple formula areaint for 1): convert lat and long which are in unit degrees to meters, by multiplying with a factor f … Read more