[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • Last Modified:

currency variables in .net

What is the best variable to use when handeling currency values in .net?
0
vbnetcoder
Asked:
vbnetcoder
  • 2
1 Solution
 
Paul JacksonCommented:
The decimal datatype
0
 
Fernando SotoCommented:
Use the Decimal

From the MMicrosoft documentation
"the decimal type has more precision and a smaller range, which makes it appropriate for financial and monetary calculations"
0
 
vbnetcoderAuthor Commented:
That is what i though. Thank you.
0
 
vbnetcoderAuthor Commented:
ty
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now