473,320 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

round function not working

Hi,

I cannot get the round function to work on vb.net. I get the message
that round is not declared?
Has round function changed or something?
MsgBox(round(3, 3))

Nov 25 '06 #1
5 4224
Try searching your help for "round" and see what you get.

Robin S.
---------------------------------
"Marc" <ma*********@hotmail.comwrote in message
news:11**********************@14g2000cws.googlegro ups.com...
Hi,

I cannot get the round function to work on vb.net. I get the message
that round is not declared?
Has round function changed or something?
MsgBox(round(3, 3))

Nov 25 '06 #2
OHM

Math.Round( n,n)
"Marc" <ma*********@hotmail.comwrote in message
news:11**********************@14g2000cws.googlegro ups.com...
Hi,

I cannot get the round function to work on vb.net. I get the message
that round is not declared?
Has round function changed or something?
MsgBox(round(3, 3))

Nov 25 '06 #3
Doh!!,

Thanks OHM

OHM wrote:
Math.Round( n,n)
"Marc" <ma*********@hotmail.comwrote in message
news:11**********************@14g2000cws.googlegro ups.com...
Hi,

I cannot get the round function to work on vb.net. I get the message
that round is not declared?
Has round function changed or something?
MsgBox(round(3, 3))
Nov 25 '06 #4
You dont know ohw i would round say '834' to '830' do you
Marc wrote:
Doh!!,

Thanks OHM

OHM wrote:
Math.Round( n,n)
"Marc" <ma*********@hotmail.comwrote in message
news:11**********************@14g2000cws.googlegro ups.com...
Hi,
>
I cannot get the round function to work on vb.net. I get the message
that round is not declared?
Has round function changed or something?
>
>
MsgBox(round(3, 3))
>
Nov 25 '06 #5
Divide it by 10, round it off, multiply it by 10.

"Marc" <ma*********@hotmail.comwrote in message
news:11**********************@j44g2000cwa.googlegr oups.com...
You dont know ohw i would round say '834' to '830' do you
Marc wrote:
>Doh!!,

Thanks OHM

OHM wrote:
Math.Round( n,n)
"Marc" <ma*********@hotmail.comwrote in message
news:11**********************@14g2000cws.googlegro ups.com...
Hi,

I cannot get the round function to work on vb.net. I get the message
that round is not declared?
Has round function changed or something?
MsgBox(round(3, 3))

Nov 25 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jef Driesen | last post by:
I need to implement a function to implement the rounding of floating point values. At the moment i have two different implementations, depending on the type of the return value (integer or double)....
6
by: Penguin | last post by:
At some long ago time Steve Jorgensen answered thus: Subject: Re: How can I round a time? Newsgroups: comp.databases.ms-access Date: 1998/12/11 Access represents a date internally as a double...
17
by: nomenklatura | last post by:
Hi, System.Math.Round function is confused me. for example i want to round 3.245 in with decimal symbol Result should be = 3.25 When i try to this in vb: A = 3.245 X = Round(A, 2) then...
7
by: bravesplace | last post by:
Hello, I am using the folling funtion to round a number to a single digit on my form: function round1(num) { return Math.round(num*1)/1 }
4
by: Chris Davoli | last post by:
The folllowing will round to 526, but it should round to 527. It works correctly for all other numbers, except for this one. Does anybody know of a bug in Math.Round? Dim ldecWater As Decimal =...
3
by: Altman | last post by:
OK I was having rounding problems before and I didn't realize that their was a third parameter in the round function that would tell it if it a 5 to round up. I thought adding this would fix the...
10
by: Henrootje | last post by:
I am looking for a way to round down the results of a calculation in a query f.e.: in a query this calculation is performed: a/b = c 5/3 = 1,666666667
4
by: =?Utf-8?B?UmVuZQ==?= | last post by:
Hello everyone I have a problem with Math.Round, it´s ocurring some strange: Math.Round(12.985) = 12.98, it´s wrong. It should be: 12.99 Why?? What is the problem? Help ME !!!!
2
by: dkruger | last post by:
Hi Everyone, I am having a little problem that I am hoping someone can help me out with. In one of my scripts, I am working with some dollar values, and using round to change the result...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.