Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can i divide values in a query output?

New Here ,
May 12, 2014 May 12, 2014

I have this code:

<cfoutput query="GetResults">

  <tr>

  <td nowrap="nowrap">#csedept_name#</td>

  <td nowrap="nowrap">#question_1#</td>

  <td nowrap="nowrap">#question_2#</td>

  <td nowrap="nowrap">#question_3#</td>

  <td nowrap="nowrap">#question_4#</td>

  <td nowrap="nowrap">#question_5#</td>

  <td nowrap="nowrap">(#question_1#/#question_2#)</td>

  </tr>

In line 9 I dont get the answert i would like i actually get the value of question_1 and question_2 , something like (5/4). How would i get it to show 1.25?

217
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , May 12, 2014 May 12, 2014

Change line 9 to:

<td nowrap="nowrap">(#question_1/question_2#)</td> 

-Carl V.

Translate
Guide ,
May 12, 2014 May 12, 2014
LATEST

Change line 9 to:

<td nowrap="nowrap">(#question_1/question_2#)</td> 

-Carl V.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources