I have to write a program which approximate the number pi in two different ways. I get in my IDE the right results. The higher the input the better should be the approximation. I have to hand in my source code at the online IDE from my university. And know the output is like "4.15477e+225" and so one. Really hight numbers. My assumption is that is because of floating points. But I really don't where is my mistake.
I am a beginner. We started programming 3 weeks ago in my university.