'How to input on the keyboard currency numbers such as: 289.54 in visual basic. What function do I use?
I have written a budget program years ago, and have recently discovered that the fractional parts of the input are being rounded. For example an input of 289.54 will end up as 290.00 because I have been using inputbox and also using val to convert the number input. I have searched for functions that will convert a string to decimal, but they all round off the fractional parts of the number input. I am thinking of converting the program to use currency, but cannot find any examples using currency that show how to use the @ character in a data type definition.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
