Rounding Floats

In my java program I would like for the compiler to not automatically round my float values. I believe by default it rounds to 6 decimal places. Since I am using quite a complex formula involving sin and cos functions I would like to keep quite a few decimal places. How do I prevent it from automatically rounding. Maybe like: float x=3.123443234 float y=frozenFloat(x + 0.00000001) //x==3.123443244



Sign In or Register to comment.