Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

Join 136,237 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 2,256 people online right now. Registration is fast and FREE... Join Now!




writing an equation

 
Reply to this topicStart new topic

writing an equation

tsetu
13 Oct, 2008 - 01:33 PM
Post #1

New D.I.C Head
*

Joined: 13 Oct, 2008
Posts: 1

How do I write an equation that converts degrees celcius to degrees fahrenheit in VB 2008?

[code]lbldegreesc = txtdegreesfahrenheit * (5 / 9) * (decfahrenheit - 32)[code]

This post has been edited by tsetu: 13 Oct, 2008 - 01:36 PM
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Writing An Equation
13 Oct, 2008 - 01:34 PM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,983



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is offlineProfile CardPM
+Quote Post

Reverand Dave
RE: Writing An Equation
13 Oct, 2008 - 03:24 PM
Post #3

D.I.C Regular
Group Icon

Joined: 27 Jul, 2008
Posts: 373



Thanked: 2 times
Dream Kudos: 50
My Contributions
Also, VB 2008 is VB.net
User is offlineProfile CardPM
+Quote Post

gbertoli3
RE: Writing An Equation
13 Oct, 2008 - 05:08 PM
Post #4

DIC at Heart + Code
Group Icon

Joined: 23 Jun, 2008
Posts: 1,046



Thanked: 17 times
Dream Kudos: 950
My Contributions
Try searching DIC snippets or Googling it. Even wikipedia has it.

http://www.dreamincode.net/code/snippet1123.htm
User is offlineProfile CardPM
+Quote Post

dbasnett
RE: Writing An Equation
15 Oct, 2008 - 12:24 PM
Post #5

D.I.C Head
**

Joined: 1 Oct, 2008
Posts: 161



Thanked: 5 times
My Contributions
i think they tried but forgot the /

CODE
lbldegreesc = txtdegreesfahrenheit * (5 / 9) * (decfahrenheit - 32)


Conversion Formula's

CODE
        '[°C] = ([°F] − 32) × (5⁄9)
        Dim farTemp As Double = 32
        Dim celTemp As Double
        celTemp = (farTemp - 32) * (5 / 9)

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 03:39AM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month