Code example for BigDecimal

Methods: floatValue

0
			// Draw the background image. Operations on the Canvas accumulate 
			// so this is like clearing the screen. 
			canvas.drawBitmap(mBackgroundImage, 0, 0, null);
			canvas.drawCircle(mCanvasWidth / 2
					+ (mXaxis.floatValue() * GMETER_PIXELFACTOR), mCanvasHeight
					/ 2 + (mZaxis.floatValue() * GMETER_PIXELFACTOR), 10,
					mLinePaint);
 
		} 
 
		private void updateBall() { 
			// TODO Auto-generated method stub 
 
		} 
 
		public void setRunning(boolean b) {
			mRun = b;
 
			// Get an instance of the SensorManager 
 
		}