Jump to content

What data type would be best for storing the money formatb of data in C#?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
john_expert_coder

john_expert_coder

    Newbie

  • Members
  • Pip
  • 1 posts
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.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,822 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Generally, you'll use float or double, but the real question will be: how large a scale do you need to support?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users