Mathimatic Functions

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Mathimatic Functions

    Hi All

    I need to subtract 20% from a field. Actually I need to subtract 20% if
    field count = 2 or more items.

    Math functions aren't my strong suite so I was hoping someone here might
    point me in the right direct as to what function to use.

    Bill


    Bill Guest

  2. Similar Questions and Discussions

    1. Any SDK functions for XFA ?
      Hi, I would like to know if there are some SDK functions to read/write data into the xfa strings within documents created using LC8 instead of...
    2. Too many functions!!!
      While developing a large FMS application, main.asc has become more than a bit lengthy. The bulk of the file is taken up by the custom client...
    3. Help with cf functions
      Here is my problem: I am having component file and inside 3 functions. First function is returning set of results, and then according to...
    4. Using ZIP functions..
      Okay, here's the scenario.. I have uploaded file_blah.zip .. It has a file compressed in it called asdf.mgx .. The thing I need to do is rename the...
    5. #10743 [Com]: class functions & PHP core functions inconsistently clash ;)
      ID: 10743 Comment by: destes at ix dot netcom dot com Reported By: jjones at net-conex dot com Status: Open...
  3. #2

    Default Re: Mathimatic Functions

    <cfset num3 = #FORM.myField# - (.2 * #FORM.myField#)>
    BSterner Guest

  4. #3

    Default Re: Mathimatic Functions

    Slightly shorter:

    <cfset num = 0.8 * #FORM.myField#>

    Mr Black Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139