Android Java code is not doing math correctly
<p>I am having a very odd result in my Android program when adding two numbers. It is the test code I am using to find out what is going out:</p>

<pre><code>private static final float yChannel[] = {12.0f, 8.0f, 4.0f, 0};

protected void onCreate(Bundle savedInstanceState) {
    Log.i("Rectangles","y1: " + yChannel[0]+2.0f);
    Log.i("Rectangles","y2: " + yChannel[0]);
}
</code></pre>

<p>The LogCat result is:</p>

<pre><code>y1: 12.02.0
y2: 12
</code></pre>

<p>I simply don't understand all the variables are float. My code is not working because it is not giving the correct result. I also tried cleaning Eclipse project.</p>
