Hi, I am calculating arithmetic mean of some $ values, so my numbers should have dollar part and cent part ( two decimal points )

double x = 3.46;

double y = 12. 13;

double arithmeticMean = ( x + y ) / 2; //7.795...should be 7.80

I don't care for stream output, I need to have correct values in memory ( in variable arithmeticMean ).

7.80....arithmeticMean / 2 = 3.9

7.795...arithmeticMean / 2 = 3.8975 //wrong

Ancient Dragon 5,243

ddanbe 2,720

Ancient Dragon 5,243

ddanbe 2,720

Ancient Dragon 5,243

ddanbe 2,720

ArkM 1,090