Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Math funtions not in document

Guest
Nov 19, 2009 Nov 19, 2009

I am wondering how many math functions in CF8 not listed in documents?

I do use (x mod y) and works fine but mod is not listed in the document and not in math category.

Can somebody give me a complete list of math functions available in CF8?

thank you very much

<cfif (getOpp.recordcount mod pagerows) eq 0>
<cfset pageCount = int(getOpp.recordcount / pagerows)>
<cfelse>
<cfset pageCount = int(getOpp.recordcount / pagerows) + 1 >
</cfif>

TOPICS
Advanced techniques
257
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 19, 2009 Nov 19, 2009

Because mod is not a math function, it is an operator just like +,-.*,/ are.

Operator types

http://livedocs.adobe.com/coldfusion/8/htmldocs/Expressions_03.html

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 19, 2009 Nov 19, 2009
LATEST

Next to what Ian has said, if it doesn't require brackets ( ) then it isn't a function. MOD requires no brackets. Here is the list of Math functions in CF8

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources