Convert fp constants from double -> float.

Change-Id: I5fff1660549473a45dafd3406f22005024655ad7
diff --git a/samples/RenderScript/Balls/src/com/example/android/rs/balls/ball_physics.rs b/samples/RenderScript/Balls/src/com/example/android/rs/balls/ball_physics.rs
index 0d9bdc3..8a3db6d 100644
--- a/samples/RenderScript/Balls/src/com/example/android/rs/balls/ball_physics.rs
+++ b/samples/RenderScript/Balls/src/com/example/android/rs/balls/ball_physics.rs
@@ -95,7 +95,7 @@
         float d = gMaxPos.x - ballOut->position.x;
         if (d < 0.f) {
             if (ballOut->delta.x > 0) {
-                ballOut->delta.x *= -0.7;
+                ballOut->delta.x *= -0.7f;
             }
             ballOut->position.x = gMaxPos.x;
         } else {
@@ -107,7 +107,7 @@
         float d = ballOut->position.x - gMinPos.x;
         if (d < 0.f) {
             if (ballOut->delta.x < 0) {
-                ballOut->delta.x *= -0.7;
+                ballOut->delta.x *= -0.7f;
             }
             ballOut->position.x = gMinPos.x + 1.f;
         } else {
@@ -119,7 +119,7 @@
         float d = gMaxPos.y - ballOut->position.y;
         if (d < 0.f) {
             if (ballOut->delta.y > 0) {
-                ballOut->delta.y *= -0.7;
+                ballOut->delta.y *= -0.7f;
             }
             ballOut->position.y = gMaxPos.y;
         } else {
@@ -131,7 +131,7 @@
         float d = ballOut->position.y - gMinPos.y;
         if (d < 0.f) {
             if (ballOut->delta.y < 0) {
-                ballOut->delta.y *= -0.7;
+                ballOut->delta.y *= -0.7f;
             }
             ballOut->position.y = gMinPos.y + 1.f;
         } else {
diff --git a/samples/RenderScript/Balls/src/com/example/android/rs/balls/balls.rs b/samples/RenderScript/Balls/src/com/example/android/rs/balls/balls.rs
index 39bebbf..dcdd586 100644
--- a/samples/RenderScript/Balls/src/com/example/android/rs/balls/balls.rs
+++ b/samples/RenderScript/Balls/src/com/example/android/rs/balls/balls.rs
@@ -42,7 +42,7 @@
 
         float r = rsRand(100.f);
         if (r > 90.f) {
-            balls1[ct].size += pow(10.f, rsRand(0.f, 2.f)) * 0.07;
+            balls1[ct].size += pow(10.f, rsRand(0.f, 2.f)) * 0.07f;
         }
     }
 }