o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Silly question (Rounding) -

Have searched as always but it appears all the rounding done if for numbers like 10.34354 etc

I need to round off to the nearest 10 but not least, example


10 would stay as 10
11 would be 20
3 would be 10
22 would be 30

Thanks in advance

 

Silly question (Rounding) -
Have searched as always but it appears all the rounding done if for numbers like 10.34354 etc I need to round off to the nearest 10 but not least, example 10 would stay as 10 11 would be 20 3 would be 10 22 would be 30 Thanks in advance


Round function Question -
Dear all, I have a question about round function in VB. General Speaking, the round function is quite simple: round(10.123567,3) will return 10.124 which I believe it is using half-adjust rounding method. But right now, I need to have a rounding method function to help me rou


Problem with rounding a number! -
In real life, When we try to round a number, let say 3.825, up to 2 decimal points, the answer is 3.83, right? Unfortunately in VB .NET, the "Math.Round" method & "Decimal.Round" method, round number like this (Read the remarks I quote from the Help file m


cell rounding of value automatically -
Hello i am working on this worksheet, and it is rounding off the value in certain cells automatically. e.g. if i have a value 2.98 in cell c3 and i make the value of the cell in question say c56 =c3 it gives a value of 3 actually i discovered that the cell does not like any fr


keep from rounding -
I have some formulas outputting to a text box. The numbers keep rounding up. How do I stop this?


Rounding Numbers in VB -
are you rounding or just truncating? your example of 100.956 should round to 100.96 not 100.95 serge's code rounds which is not what your example shows


silly question about form -
hi there, i know my question may be some what silly to all of u, i want to know that on form what ever controls are placed and in its code, i've created some variable, some functions. how to set them to their initial values. i mean how to set variables to nothing, how to set controls


Silly keypress question... -
This is a silly question...I had learned this a year or so ago...haven't used it since...and couldn't find an example in the archive. I have a text box. All I want it to do is to enable commnad button if the length of my textbox > 0. If it is 0 then disable the command button.


A silly question, how to add a tab into the web form -
Hi I just start to use ASP.net, I have a silly question, how to add a tab into the web form. I know that in VB6, I can add tab into the window form. Thanks in advance. Claire


Help: Rounding problem ! -
Hi, I have an application and that give me rare rounding problem. The statement I use to rounding the value x = x + round((w * y), 2) it loop through 4 records, only two record get rounded corrrectly and the other two is not, I have no idea why. Original value Aft


MainMenu Help -
hi all ! i am sorry for asking a silly question, but i just cannot help. i am not able to get the main menu on the toolbox. By default, after installation of vb 6 , it did not appear. i have searched in the components tab, but not able to find one. Can Some one shed some light on


Old silly application -
Dear all, This question is a bit silly actually, cos I need to maintain a silly old application (back to the past). Does anyone know how to put a formula in MS-Access 2.0 Report? I know we can make use of TextBox.ControlSource to make computation. But how to use perform an assign


help my numbers are rounding off -
i'm doing a order form, they only problem i am having is my output, all the numbers are rounding off instead of showing decimals, here is my code if someone wants to look at it and tell me what i'm dong wrong, thanks.


Rounding Numbers Within A Textbox -
Hi, Im fairly new to vb.NET, The problem I have is that I want to round a number down instead of it being rounded up. I want to round 10.389 to 10.38 instead of it rounding to 10.39, is this possible? thanks in advance.


...............Desparate now...(beginner stuck) -
I posted a similar question yesterday. Thanks to the guys who replied, but I didn't explain myself properly. I have a number which has been input by the user. Could be anything, but normally not greater than about 10 or so, but may be up to 2 decimal points. From this number, I nee


C++ automatically rounding off values -
how to resolve the case of c++ rounding off values, for example: cos(6.2832) i get 1 instead of .99999 and 0.1 being only 0... what should i do


opening one form from another -
This may seem like a silly question I have lust started using vb6 net before I used vb access. I am having trouble finding out the command in this version they are differant in vb accesss The most imediate Question I have is this I have created a Command button to open a pop-up form w


stop rounding up -
I have some formulas outputting to a text box. The numbers keep rounding up. How do I stop this?


rounding to a specific place -
when I have cin >> dprice; get a double value and I type in 8.88, it gets immediately stored as 8.8800000000000008. Now the real questions about this would be like why does it do that, why don't they fix that, and why do people still use C++ when it does stuff like that? But my


MS SQL Database.. -
If I create a MS SQL Database and upload it to a web site... that doesnt have it listed in the "features" of the web site... Can it still be used?? I know this is probably a silly question... but can't I just build it locally then upload it... and use asp to access it? Or


another silly question... -
I guess I should know what I did to my own program but I can't figure out what silly thing is wrong with this piece of code: Public fMainForm As frmIndexMap I get a compile error that says 'user defined type not defined'. What the heck is wrong?????? Thnx.


Rounding Problem -
Im using Visual Basic 6 and access 97 When i put a value in the textbox, for exemple 0.5 when writes this value in the database table apears 0. I think its a rounding problem, how can i solve this problem? Thanks in advance!


Silly question about string -
I know it's kinda silly but i'm just beggining java,so. I cannot declare a "string" variable in Java studio creator. Must i import something? Thanks.


**RESOLVED** Is File Open - Probably Silly Question **RESOLVED** -
Hey all, I'm sorry if this question might sound a bit stupide or primitive but i'm really sleepy and my head is far from being clear today. Well, here it is: How can i determine if a certain file is open (In general, that is by another app)??? As i said, excuse me for this silly qu


[2005] Is having your main 'business logic' as a DLL in effect making it Open Source -
Ha, this may sound pretty silly, but if you have your app's core functionality in DLLs, any dude with say Visual Studio can plug those DLLs into his/her own app and use all the functionality you've worked so hard to make. Err, right? Is there a way to prevent such monsterous things fro


Easy date/time rounding Q. ***RESOLVED*** -
Hi I'm trying to find the most efficient way of rounding time values to the nearest hour. Eg "19:41:00" should read "20:00:00" Any pointers anyone? Thanks in advance.


Rounding numbers to 2 decimal places - how to (Rounding) -
I am returning math to a variable (and/or a text box) BUT I only want to have two or three decimal places, that are rounded off. I cant figure out how to round them. I've tried setting text box properties, calling 'as currency' but I dont know what else to do. Thank you.


Hundredth rounding in Euro Conversion -
Using Double variable to store numbers from math formulas, I'm not able to get the correct rounding from national currency to EURO. That is, when the result is, for instance, 37.42500 I should have my variable (formatted with ##0.00) equals to 37.43 . Instead, I get 37.42 that is wron


Rounding to nearest 25,000 -
This is not an ordinary rounding issue. Here's what I need to do. I have to round any number up to the nearest 25,000 increment. For example: 124,698 would need to round to 125,000 126,125 would need to round to 150,000 1,278,189 would need to round to 1,300,000 Anyone k


Rounding - Does it or doesn't it -
I've seen a few comments on this forum that suggest the round function only rounds to the nearest even number. Is this really the case? I've tried a few experiments and, for me at least, this doesn't appear to be true. ie: round(10.6) produces 11 (not even!) print round (11.12


tabs and controls -
Hi very silly questions but i place a button and textbox on first tab multipage its visable on all pages this cant be right did i do some thing wrong i thought it would be a tab of like 3 pages with different stuff on each page. silly question if i am right about differnt stuff on


How do I check the value of a variable for rounding -
Right now, I have something like: -- int x, y, z = 0 cin>>x; x = ((y * 3 + z) / 4); -- I am getting a decimal that I want rounded to a whole number. My question is, how can i see what the value is to know if i round up or down?


rounding and cant be more than question. -
hey, how can i make something round to no decimal places and have it so that the end number cant be more than 150. so that if its 155 it shows 150.


1 duh question -
1) How come when I try to do a formula like, 50 * (3/100), vb returns 2 and not 1.5? How can I make it return 1.5? I know it is rounding, but I can't figure out how to stop it from doing so...


Rounding Up and Down Conditionally -
I have a need to do conditional rounding. I need to check to see if a variable is an integer. If it is, do nothing BUT if it's not, round down to the next whole number. How can I check to see if a variable is an integer? Thanks, Jeremy


Can a function be too "long" -
Are there any drawbacks to having long (as in many lines of text) functions? It may seem like a silly question, but my main() function is getting pretty long (lots of input checking) in a class project, so I broke it up into a bunch of functions. Now, even the functions themselves ar


Php Api -
Hello everyone, I am new to PHP... i would like to ask a question here, jsut like Java, is there PHP API? Sorry if i have asked a silly question here. ^^; Thank you.


Silly Graphs and charts -
Have you ever seen a silly graph like this? Examples are welcome.


Tab question -
Uhm, this is probably a silly question but....how would I make so that when a textbox gets the focus; if there is any text, it gets highlighted by the cursor. Thanks in advance. -Jack Vinitsky


this may be a dumn question but... -
hi how do i call a verifcation script in javascript before i submit my asp page. i know its a silly question but im very confused by it. Regards, Scott