Searching \ for '[EE]: Basic programming question, rounding numbers' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devprogs.htm?key=programming
Search entire site for: 'Basic programming question, rounding numbers'.

Exact match. Not showing close matches.
PICList Thread
'[EE]: Basic programming question, rounding numbers'
2003\02\19@235255 by John Pearson

flavicon
face
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 spam_OUTlistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body

2003\02\20@010456 by Ian McLean

flavicon
face
If we are talking about VB, use the Round() function.

i.e. x = Round(x, 4)



-----Original Message-----
From: pic microcontroller discussion list
[.....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU]On Behalf Of John Pearson
Sent: Thursday, 20 February 2003 4:04 pm
To: PICLISTspamKILLspamMITVMA.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 .....listservKILLspamspam.....mitvma.mit.edu with SET PICList DIGEST in the body

--
http://www.piclist.com hint: To leave the PICList
EraseMEpiclist-unsubscribe-requestspam_OUTspamTakeThisOuTmitvma.mit.edu>

2003\02\20@025933 by hael Rigby-Jones

picon face
{Quote hidden}

Be aware that VB's Round function does not always work as expected.  Check
out the MS knowledge base at
http://support.microsoft.com/default.aspx?scid=KB;en-us;q196652 for reasons
why and some functions to implement different types of rounding.

Regards

Mike

--
http://www.piclist.com hint: To leave the PICList
spamBeGonepiclist-unsubscribe-requestspamBeGonespammitvma.mit.edu>

More... (looser matching)
- Last day of these posts
- In 2003 , 2004 only
- Today
- New search...