February 13, 2023
Custom calculators in projects
Comments
(2)
February 13, 2023
Custom calculators in projects
Guide 10 posts
Followers: 1 people
(2)

Hi,

I wanted to assemble a project that includes a custom calculator to perform certain calculations. There is some information online about performing calculations in advanced actions – expressions – but it does not provide a solution to my question.

In my intended project, I would like to insert a mortgage calculator, which necessitates exponential math, but in theory the ability to use exponents in calculations would help me in future projects i.e., scientific calculators, modular calculation interfaces for certain cases. I feel that there is probably a way to do this using javascript, but since this is just arithmetic it stands to reason that this should be able to be accomplished without involving another programming language – but if that is the only way right now, I understand. I know about widgets, but from my perspective, widgets are limited to the extent that one has not been created that is specifically designed to serve the specific need you are trying to fulfill – unless there are widgets that can be reprogrammed/adjusted to include exponents?

I began the process of programming a calculator from scratch in advanced actions and tried to post a question on this forum about using exponents, but for some reason, it was rejected. If anyone has any ideas or suggestions, that would be great.

Thank you

2 Comments
2023-02-14 09:48:11
2023-02-14 09:48:11

I am sorry, but within Captivate the mathematical operators are limited to the four basic ones: + – * /.

JavaScript has the math operator for Exponentiation (**) and that shouldn’t be that difficult to implement within a shared (my preference) or advanced action. I could figure out a workaround using a shared action to mimick exponentiation using the multiplication operator in Captivate, but wonder if it would save you time compared with a simple use of JS for that purpose? What is missing is the possibility to combine operators wit parentheses in Captivate to perform more complicated calculations. What I miss even more in Captivate is the modulo operator… but that is bit off topic.

If you talk about real scientific operators, you will really need programming and I would even choose a completely different tool, not the rapid eLearning authoring tool which is Captivate.

Like
(1)
(1)
>
Lieve Weymeis
's comment
2023-02-14 15:54:03
2023-02-14 15:54:03
>
Lieve Weymeis
's comment

Thank you very much

Like
()
Add Comment