Solved

Decimal Datatype Size limit

Posted on 2016-10-05
3
22 Views
Last Modified: 2016-10-24
Dear Sir/Madam,

Please be kind enough to provide me with the maximum length allowable for a decimal data type that C# allows in a desktop application.

Any help would be greatly appreciated.

Kind Regards,
Indunil Sanjeewa
0
Comment
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points (awarded by participants)
ID: 41829744
It is 128 bit which according to the documentation is
(-7.9 x 10^28 to 7.9 x 10^28) / (10^(0 to 28))

https://msdn.microsoft.com/en-us/library/364x0z75.aspx
1
 
LVL 30

Expert Comment

by:anarki_jimbel
ID: 41830531
Just to add that the above is true for any application, desktop, web, etc.
1
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 41856712
That is what it is
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question