I tested mod in ACF and it, indeed, does only return whole numbers as
well.

As mentioned in one of the wikipedia articles, I created a quick
function to return modulus calculations with decimals.  Here's that
function in case anyone would like the option to apply Int() (i.e.
Floor function) to their mod calculations instead of Int() being
forced upon them:

<cffunction name="mod" returntype="numeric">
        <cfargument name="a" type="numeric" required="true">
        <cfargument name="b" type="numeric" required="true">
        <cfreturn a - (b * Int(a / b))>
</cffunction>

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to