Any Ideas where my fault lies? For some reason the double returns always a "...0" instead of the right value. To make testing easier i put the println Statements in. Thank you for every help.