dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


advertisement
 

Detecting the Properties and Limits of Numeric Datatypes

Each built-in datatype in C++ possesses different properties, all of which contain a wealth information important to the design of your application. Find out how the <limits> library can help you programmatically access this critical data.


advertisement

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


++ has about 10 distinct integral datatypes and three more floating point datatypes. Each datatype has different numeric properties such as the numeric range, the maximum number of digits it can represent, and a different precision. These properties are critical in financial, scientific, graphical, and DSP applications. This article will discuss how to obtain the numeric properties of fundamental datatypes programmatically by using the <limits> library.


"How many digits can a double store?", "What is the maximum positive value that signed long can represent?", and similar questions are critical to the design of your application. How do you get the answers to these questions in a systematic and portable fashion?


Use the standard <limits> library to obtain the numeric properties of built-in datatypes.



Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date