+ADwAIQ-DOCTYPE HTML PUBLIC +ACI--//W3C//DTD HTML 3.2 Final//EN+ACIAPg-
+ADw-HTML xmlns:MSHelp+AD0AIg-http://msdn.microsoft.com/mshelp+ACI- DIR+AD0AIg-LTR+ACIAPgA8-head+AD4-
+ADw-meta HTTP-EQUIV+AD0AIg-Content-Type+ACI- Content+AD0AIg-text/html+ADs- charset+AD0-Windows-1252+ACIAPg-
+ADw-title+AD4-Decimal Data Type+ADw-/title+AD4-
+ADw-xml+AD4-
+ADw-MSHelp:TOCTitle Title+AD0AIg-Decimal Data Type+ACI-/+AD4-
+ADw-MSHelp:RLTitle Title+AD0AIg-Decimal Data Type+ACI-/+AD4-
+ADw-MSHelp:Keyword Index+AD0AIg-A+ACI- Term+AD0AIg-vadatDecimal+ACI-/+AD4-
+ADw-MSHelp:Keyword Index+AD0AIg-K+ACI- Term+AD0AIgBA- identifier type character+ACI-/+AD4-
+ADw-MSHelp:Keyword Index+AD0AIg-K+ACI- Term+AD0AIg-assigning data types+ACI-/+AD4-
+ADw-MSHelp:Keyword Index+AD0AIg-K+ACI- Term+AD0AIg-D literal type character+ACI-/+AD4-
+ADw-MSHelp:Keyword Index+AD0AIg-K+ACI- Term+AD0AIg-data types, Decimal+ACI-/+AD4-
+ADw-MSHelp:Keyword Index+AD0AIg-K+ACI- Term+AD0AIg-Decimal data type+ACI-/+AD4-
+ADw-MSHelp:Keyword Index+AD0AIg-K+ACI- Term+AD0AIg-numbers, real+ACI-/+AD4-
+ADw-MSHelp:Keyword Index+AD0AIg-K+ACI- Term+AD0AIg-real numbers+ACI-/+AD4-
+ADw-MSHelp:Keyword Index+AD0AIg-K+ACI- Term+AD0AIg-variable-precision numbers+ACI-/+AD4-
+ADw-MSHelp:Keyword Index+AD0AIg-A+ACI- Term+AD0AIg-vadatDecimal+ACI-/+AD4-
+ADw-MSHelp:Keyword Index+AD0AIg-F+ACI- Term+AD0AIg-Decimal+ACI-/+AD4-
+ADw-MSHelp:Keyword Index+AD0AIg-F+ACI- Term+AD0AIg-vb.Decimal+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-DevLang+ACI- Value+AD0AIg-VB+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-DevLangVers+ACI- Value+AD0AIg-kbLangVB+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-DocSet+ACI- Value+AD0AIg-Visual Basic+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-DocSet+ACI- Value+AD0AIg-Visual Studio+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-DocSet+ACI- Value+AD0AIg-VSM+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-Product+ACI- Value+AD0AIg-VB+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-ProductVers+ACI- Value+AD0AIg-kbVBp700+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-Product+ACI- Value+AD0AIg-VSA+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-ProductVers+ACI- Value+AD0AIg-kbVSA+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-Technology+ACI- Value+AD0AIg-ManagedCode+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-TechnologyVers+ACI- Value+AD0AIg-kbManagedCode+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-TopicType+ACI- Value+AD0AIg-kbSyntax+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-TargetOS+ACI- Value+AD0AIg-Windows+ACI-/+AD4-
+ADw-MSHelp:Attr Name+AD0AIg-Locale+ACI- Value+AD0AIg-kbEnglish+ACI-/+AD4-
+ADw-/xml+AD4-
+ADw-meta name+AD0AIg-rtfFileName+ACI- content+AD0AIg-vbadatatypes.rtf+ACIAPg-
+ADw-meta NAME+AD0AIg-save+ACI- CONTENT+AD0AIg-history+ACIAPg-
+ADwAIQ---CSS+AF8-START--+AD4-
+ADw-SCRIPT SRC+AD0AIg-ms-help:/../commoner/scripts/dtuelink.js+ACIAPgA8-/SCRIPT+AD4-
+ADwAIQ---CSS+AF8-END--+AD4APA-meta NAME+AD0AIg-msdnID+ACI- CONTENT+AD0AIgBf-99868+ACIAPg-
+ADw-/head+AD4-
+ADw-body topmargin+AD0-0 id+AD0AIg-bodyID+ACI- class +AD0- +ACI-dtBODY+ACIAPgA8ACE---NONSCROLLING BANNER START--+AD4-
+ADw-div id+AD0AIg-nsbanner+ACIAPg-
+ADw-div id+AD0AIg-bannerrow1+ACIAPg-
+ADw-TABLE CLASS+AD0AIg-bannerparthead+ACI- CELLSPACING+AD0-0+AD4-
+ADw-TR ID+AD0AIg-hdr+ACIAPg-
+ADw-TD CLASS+AD0AIg-runninghead+ACI- nowrap+AD4-Visual+ACY-nbsp+ADs-Basic+ACY-nbsp+ADs-Language+ACY-nbsp+ADs-Reference+ADw-/TD+AD4-
+ADw-TD CLASS+AD0AIg-product+ACI- nowrap+AD4AJg-nbsp+ADsAPA-/TD+AD4-
+ADw-/TR+AD4-
+ADw-/TABLE+AD4-
+ADw-/div+AD4-
+ADw-div id+AD0AIg-TitleRow+ACIAPg-
+ADw-H1 class+AD0AIg-dtH1+ACIAPgA8-A NAME+AD0AIg-vadatdecimal+ACIAPgA8-/A+AD4-Decimal Data Type+ADw-/H1+AD4-
+ADw-/div+AD4APA-/div+AD4-
+ADwAIQ---NONSCROLLING BANNER END--+AD4-
+ADw-DIV id+AD0AIg-nstext+ACI- valign+AD0AIg-bottom+ACIAPgA8ACE-----+AD4-
+ADw-P+AD4APA-B+AD4-Decimal+ADw-/B+AD4- variables are stored as signed 128-bit (16-byte) integers scaled by a variable power of 10. The scaling factor specifies the number of digits to the right of the decimal point+ADs- it ranges from 0 through 28. With a scale of 0 (no decimal places), the largest possible value is 79,228,162,514,264,337,593,543,950,335. With 28 decimal places, the largest value is 7.9228162514264337593543950335, and the smallest nonzero value is 0.0000000000000000000000000001 (1E-28).+ADw-/P+AD4-
+ADw-P+AD4-Appending the literal type character +ADw-B+AD4-D+ADw-/B+AD4- to a literal forces it to the +ADw-B+AD4-Decimal+ADw-/B+AD4- data type. Appending the identifier type character +ADw-B+AD4AQAA8-/B+AD4- to any identifier forces it to +ADw-B+AD4-Decimal+ADw-/B+AD4-. You might need to use the +ADw-B+AD4-D+ADw-/B+AD4- type character to assign a large value to a +ADw-B+AD4-Decimal+ADw-/B+AD4- variable or constant, as the following example shows:+ADw-/P+AD4-
+ADw-PRE class+AD0AIg-code+ACIAPg-Dim BigDec1 As Decimal +AD0- 9223372036854775807 ' No overflow.
Dim BigDec2 As Decimal +AD0- 9223372036854775808 ' Overflow.
Dim BigDec3 As Decimal +AD0- 9223372036854775808D ' No overflow.+ADw-/PRE+AD4-
+ADw-P+AD4-This is because without a literal type character the literal is taken as +ADw-B+AD4-Long+ADw-/B+AD4-, and the value to be assigned to +ADw-code class+AD0AIg-ce+ACIAPg-BigDec2+ADw-/code+AD4- is too large for the +ADw-B+AD4-Long+ADw-/B+AD4- type.+ADw-/P+AD4-
+ADw-P+AD4-The equivalent .NET data type is +ADw-B+AD4-System.Decimal+ADw-/B+AD4-.+ADw-/P+AD4-
+ADw-H4 class+AD0AIg-dtH4+ACIAPg-See Also+ADw-/H4+AD4-
+ADw-P+AD4APA-A HREF+AD0AIg-vagrpdatatype.htm+ACIAPg-Data Type Summary+ADw-/A+AD4- +AHw- +ADw-MSHelp:link keywords+AD0AIg-frlrfSystemDecimalClassTopic+ACI- TABINDEX+AD0AIg-0+ACIAPg-Decimal Structure+ADw-/MSHelp:link+AD4- +AHw- +ADw-A HREF+AD0AIg-vagrptypeconversion.htm+ACIAPg-Type Conversion Functions+ADw-/A+AD4- +AHw- +ADw-A HREF+AD0AIg-vaidxconversionkeywords.htm+ACIAPg-Conversion Summary+ADw-/A+AD4- +AHw- +ADw-MSHelp:link keywords+AD0AIg-vaconUsingData+ACI- TABINDEX+AD0AIg-0+ACIAPg-Efficient Use of Data Types+ADw-/MSHelp:link+AD4APA-/P+AD4-
+ADwAIQ---Footer Start--+AD4-
+ADw-DIV CLASS+AD0AIg-footer+ACIAPg-
+ADw-br+AD4-
+ADw-HR+AD4APAAh---Feedback Link--+AD4-
+ADw-p+AD4APA-A HREF+AD0AIg-JavaScript:sendfeedback('+AF8-99868', 'VSDOCS+AEA-MICROSOFT.COM')+ACIAPg-Send feedback to Microsoft+ADw-/A+AD4APA-/p+AD4APAAh---Copyright--+AD4-
+ADw-p+AD4APA-MSHelp:link keywords+AD0AIg-vxmscCopyright+ACI- TABINDEX+AD0AIg-0+ACIAPgAm-copy+ADs- 2001 Microsoft Corporation. All rights reserved.+ADw-/MSHelp:link+AD4APA-/p+AD4APA-/div+AD4- +ADwAIQ---Closes the footer div--+AD4-
+ADw-/div+AD4- +ADwAIQ---closes the topic content div--+AD4-
+ADwAIQ---FOOTER+AF8-END--+AD4-
+ADw-/body+AD4-
+ADw-/html+AD4-