the sending of the no. or a string is dependent on the time u have taken to send it through serial port
bcz if u put the whole of the cicuit in the while loop or the for loop with time delations u can eeasily see
the strings it can end for that perticular time. if u wish i can send u a circu9it for u also.my email address is
01.ammar@gmail.com
u can change the type of the number u are sending to serial port, bycliking the search icon in the control palate and writing in the box like,string to decimal conversion,and u will get the idea of how to convert from ascII to other types.