My Account   Contact Us    
  
» HomeProductsSupportDeveloper CommunityCompany
Quoted Numerals
Quotes are not needed around numbers in expressions.

Type: style
Severity: (2)

Incorrect example
<cfset n = "5">

Resolution

<cfset n = 5>
Explanation

Quotes are not needed around numbers in expressions. While the presence of quotes has minimal runtime impact, removing quotes on numbers makes them easier to read. IDE's such as ColdFusion studio, and Dreamweaver will color numbers differently if they are not in quotes.



Sign up for our newsletter: | Subscribe with RSS: RSS
© ActivSoftware 1999 to 2005 | Privacy Statement