Pages

Tuesday, June 10, 2014

How to Perform Math Calculations With Coldfusion

ColdFusion is a type of Web programming language that uses tags similar to HTML. However, unlike the static HTML language, ColdFusion provides you with dynamic page capabilities. Math calculations are a basic part of programming in ColdFusion; use the ColdFusion tags to calculate two variables and display the results on the Web page.

Instructions

    1

    Right-click the ColdFusion file you want to edit and select "Open With." Click your ColdFusion editor to open the code.

    2

    Create two ColdFusion variables and assign numerical values to the variables. The following code creates two variables to perform math calculations:


    3

    Perform the calculation. For instance, the following code adds the two numbers together:

    4

    Display the results to the user. Add the following tag after you complete the calculation:

    The total of the two values: total

0 comments:

Post a Comment