Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Decimal Data Type in Visual Basic

 
Andrew McCarthy
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic