Skip to main content
nicolit16090695
Participant
January 30, 2019
Question

Multiplying wrong

  • January 30, 2019
  • 1 reply
  • 258 views

I have two text boxes in which students can put amounts and hit a calculate button for the result.  I am using the expression function with each box as a variable.  The problem is the answer generated is wrong.  It is not always off, but for the answer I need the student to get the answer is wrong.  I have a work around by adding the missing amount if the answer generated is the amount captivate keeps generating.  However, I would love to know what is really wrong.  I tried recreating the slide thinking this was just a Captivate Gremlin, but no luck.

Any help would be great.

This topic has been closed for replies.

1 reply

Lilybiri
Legend
January 30, 2019

Which version are you using, please?

Are your calculations using decimals? Have a look at these posts:

Playing with Numbers - part 1 - Captivate blog

Playing with Numbers - part 2 - Captivate blog

nicolit16090695
Participant
January 30, 2019

I am using 2019.  The formula does have a decimal.  It should calculate out to two decimal places.  In my work-around I have made it where the answer will display correctly; however, it is no longer displaying in two decimals. 

Lilybiri
Legend
January 30, 2019

In that situation you will have to use JS to format.