This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Other Languages and the fly likes Decimal Data Type in Visual Basic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "Decimal Data Type in Visual Basic" Watch "Decimal Data Type in Visual Basic" New topic

Decimal Data Type in Visual Basic

Andrew McCarthy

Joined: Jun 20, 2012
Posts: 22
Is there a way to store variables as a decimal data type in Visual Basic? I'm supposed to write a program that allows a user to input a pair of values and receive a third value, using the pythagorean theorem, but I keep getting an error. I know it can be done if I use a double data type, but the assignment specifically says to use the decimal type, so I'm stumped.
I agree. Here's the link:
subject: Decimal Data Type in Visual Basic
It's not a secret anymore!