Hi,
The data type to use can be decimal or double depending upon the range and precision of data to store. double will enable you to store larger range of data. Moreover the precision will also be better. The typical synatx that you can use is as follows:
double amount=12.23232 32;
label1.Text= amount;
More details for the same can be found at the below link:
Hope this solve your problem..
User Profile
Collapse
Profile Sidebar
Collapse
Smith Ward
Banned
Last Activity: Jul 1 '11, 10:45 AM
Joined: Jun 14 '11
Location:
-
Smith Ward started a topic What data type would be best for storing the money formatb of data in C#?in .NETWhat data type would be best for storing the money formatb of data in C#?
Hi,
I am working on a website which is supposed to deal with users bank transactions. As it is going to deal with money on a higher scale. I want to know what will be the best fit data type for storing the money values in C# language such that the maximum memory utilization and performance can be get.
Thanks,
Dev
No activity results to display
Show More
Leave a comment: