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

How can i divide values in a query output?

New Here ,
May 12, 2014 May 12, 2014

Copy link to clipboard

Copied

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?

Views

197

Translate

Translate

Report

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.

Votes

Translate

Translate
Guide ,
May 12, 2014 May 12, 2014

Copy link to clipboard

Copied

LATEST

Change line 9 to:

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

-Carl V.

Votes

Translate

Translate

Report

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
Documentation