Skip to main content
November 19, 2009
Question

Math funtions not in document

  • November 19, 2009
  • 2 replies
  • 283 views

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>

This topic has been closed for replies.

2 replies

BKBK
Community Expert
Community Expert
November 19, 2009

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

ilssac
Inspiring
November 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