If we are talking about VB, use the Round() function. i.e. x = Round(x, 4) -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of John Pearson Sent: Thursday, 20 February 2003 4:04 pm To: PICLIST@MITVMA.MIT.EDU Subject: [EE]: Basic programming question, rounding numbers In basic, How can I round off a Single data type to about 4 or 5 decimal places. I get scientific notation and I don't need (want) that much precision. Thanks John -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu