Whatever message this page gives is out now! Go check it out!
PrecisionEvaluate(string_expression1 [, string_expression2 , ... ])Parameter | Description |
string_expression1, string_expression2... | Expressions to evaluate |
This function differs from the Evaluatefunction only in its use of BigDecimal precision arithmetic to calculate numeric values; otherwise the two functions are identical. The results of an evaluation on the left can have meaning in an expression to the right, and the function returns the result of evaluating the rightmost expression. If a string expression contains a single- or double-quotation mark, the mark must be escaped.If an expression, such as 1/3, results in an infinitely repeating decimal value, ColdFusion limits the decimal part to 20 digits.<cfscript>
num1=5
num2=(3/8)
writeOutput("The resultant expression is: " & precisionEvaluate(num1/num2))
</cfscript>