Technology Software

Decimal Vs. Number Data Types

    Decimal Data Type

    • The decimal data type is used for storing very accurate numbers.Ablestock.com/AbleStock.com/Getty Images

      Decimal data types store variables as signed 128-bit (16-byte) integers. These are scaled by a variable power of 10 which specifies the number of digits to the right of the decimal point. For example, the largest possible value of +/- 79,228,162,514,264,337,593,543,950,335 would be stored as 7.9228162514264337593543950335 with a scaling factor of 0. The scaling factor would shift the decimal until there are zero digits to the right of the decimal point. Additionally, the smallest possible value of the decimal data type is +/-0.0000000000000000000000000001 (+/-1E-28).

    Number Data Type

    Size Matters

    • Very large numbers should be stored using the number data type.Jupiterimages/Photos.com/Getty Images

      When the project you are working on requires the storage of very large numbers but does not require a great deal of precision, you can use the number data type. This is because the number data type is capable of storing values up to 1.79E+308 while the decimal data type can only reach as high as 7.9E+28. Additionally, the number data type can store values as small as 1E-323 while the decimal data type only stores values as small as 1E-28.

    Accuracy Matters

Related posts "Technology : Software"

How to Capture Analog Audio on My Computer

Software

Effective Photoshop Training Course to Enhance Your Photos

Software

How To Use Softphone Software For Your Business

Software

How to Access a String Array in JSP

Software

How Do I Get a Reversible Reaction Arrow in Microsoft Word 2007?

Software

How to Get AVCHD (MTS) Files to My PC

Software

Beat Detective Region Conform Tips

Software

MS BKF Repair Tool to Fix Corruption Owing to FAT File System

Software

Making an ASM Comparison

Software

Leave a Comment