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>
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
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