Doing Maths In VB?
Mar 29, 2010
Trying to do some Maths in vb and have it all out put in lblCost.text
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
Dim decTax As Decimal
Dim decTotal As Decimal
Dim decSubtotal As Decimal
[code]....
To Show "Total Cost inc. VAT & Delivery $233" E.g
View 26 Replies
May 18, 2009
Is there a method to calculate an equation from a string that looks something like "(1 + 1) * 2"?
View 9 Replies
Nov 15, 2010
I am trying to make a calculator (how original) but I am also trying to make it like a console. I have a textbox in which you enter a command and a list in which the lines appear.
My question is how can I translate the plain text which the user enters i.e 3*(2+4) to a maths command so that VB can display the answer?
View 9 Replies
Oct 20, 2009
Is there a method to calculate an equation from a string that looks something like "(1 + 1) * 2"?
View 2 Replies
Mar 24, 2009
I ve done the main main page which includes a button which when pressed will go on the next page etc etc.
The problem that i am facing with is the concept behind creating the main function of the game.
I.e. Once the main screen comes up it will show a formulae eg 3 + 3. After the forumale is shown the user will input the answer and then when they want to go to the next question that click the next button which inturn shows a different question if the answer is correct, if not it will stay on the same forumale. I would also like to add a skip button that will allow the user to skip the question if they cant figure it out.
So yeah my main issue is programming it ( i mean i can add buttons and program them to link to places (and show messages) but that is all lol) .
incase i didnt menmtion earlier, i am using Visual Basic 2005
View 15 Replies
Nov 9, 2009
i have two textboxes where a numeric value will get entered into both, these values will then be taken and the first value divided by the second value. The problem i am having is that if for example the first value is 11 and the second value is 10, when i divide 11 by 10 the result is 1. I have tried setting the output format to have 2 decimal places but it still displays 1 instead of 1.1. [Code]
View 4 Replies
Nov 14, 2009
I am fairly new to programming so please bare with me. For my coursework, I am making a maths quiz which allows the teacher to add or edit questions and solutions. then these solutions and quetsions form a quiz that students can access.But I dont know how to allow the teacher to use the weird maths symbols. The quiz is only going to be about algebra so no complex symbols are required, I saw some of these symbols in unicode. But dont know how to make that symbol appear in textbox which the teacher is going to use to enter questions etc.
View 7 Replies
Mar 7, 2011
I would like to develop an application that involves a lot of tables and maths, and then displaying the results. I can visualize how this would work in SQL, as far as creating the stored procedures and tables required, however the front facing application would be a completely new experience to me.I would probably be sharing the built application with friends, but completely as a no profit tool. I assume that the developer edition of dot net is a suitable option? My main query is, is dot net really the best way to develop this tool? I have a strong feeling that I will not be able to use SQL as this would require a server to be run, and this is not practical. Can the tables be implemented into a DLL or similar to be used by the application for example?
View 4 Replies
Mar 14, 2009
Is this formula right just asking to see if I can make a file downloader on my own with fully working progress bar.
var/var2 * 100 = answer
View 3 Replies
Mar 1, 2009
I'm going to start delving into maths in vb Now want I want to do is convert the distance between two coordinates. I've found this linke below on the web. Does anyone have a link to good tutorial for this conversion?
View 7 Replies
May 5, 2011
Trying to get the magnetic track from two waypoints, but are getting error in the formula,
This is my code at the moment (produces error)
tc1.text = Math.Atan2((Math.Sin(lon1.Text - lon2.Text) * Math.Cos(lat2.Text)), Math.Cos(lat1.Text) * Math.Sin(lat2.Text) - Math.Sin(lat1.Text) * Math.Cos(lat2.Text) * Math.Cos(lon1.Text - lon2.Text))) 2 * pi)
View 7 Replies
Jan 29, 2007
1) Is it possible to access the Excel mathematical functions without actually opening Excel?
I was thinking of through a DLL WinAPI call or maybe a delegate function or smaller program?
2) Does anyone know of a MS link or area that gives instruction on "how to" use every function of every Windows DLL at all?
Or for all those that Microsoft have chosen to document online at least.
View 1 Replies