NaN error while converting float value to string
<p>I am trying to rotate the box via processing along with arduino and accelerometer. 
But when i ran println statement in processing ,it shows " NaN". <a href="http://i.stack.imgur.com/u3tAZ.png" rel="nofollow"> ARDUINO CODE</a></p>

<p><a href="http://i.stack.imgur.com/7rqnq.png" rel="nofollow">Processing code</a></p>