-
1. Re: Is it possible to solve Peukert's equation using text caption boxes and a calculate box?
RodWard Nov 22, 2014 6:26 PM (in response to Tricia0923)I know nothing about this equation, but if the values that you put into the boxes are whole numbers then the answer is YES, Captivate can use User Variables and Conditional Actions with Expression actions to do the math. However, if the values you need to use are NOT whole numbers then the answer is NO, you're in trouble and would need to use something else such as JavaScript to do the math.
-
2. Re: Is it possible to solve Peukert's equation using text caption boxes and a calculate box?
Tricia0923 Nov 22, 2014 7:20 PM (in response to Tricia0923)the values for I, C, and R are whole numbers. The answer needs to be two decimals and k is 1.4.
I don't know the first thing about javascript
-
3. Re: Is it possible to solve Peukert's equation using text caption boxes and a calculate box?
RodWard Nov 23, 2014 1:40 AM (in response to Tricia0923)Captivate provides no way to limit the number of decimals or achieve rounding of the numbers. JavaScript code would be your only way. But since you don't know how to do that, I would encourage you to go to Captivatedev.com and investigate Jim Leichliter's course on Captivate JavaScript.
-
4. Re: Is it possible to solve Peukert's equation using text caption boxes and a calculate box?
Tricia0923 Nov 23, 2014 7:36 PM (in response to Tricia0923)Rod,
So lets say that C = 400, I = 79.5, R = 20 and k = 1.3
How would I solve for t?? I have no idea where to start that kind of calculation using the expression option in Captivate.
Can it be done without java script? Oh, and I did go to capitivatedev.com thanks.
t = C/(I/(C/R)) ( R/C)
-
5. Re: Is it possible to solve Peukert's equation using text caption boxes and a calculate box?
RodWard Nov 23, 2014 9:17 PM (in response to Tricia0923)Like I said before, Captivate isn't set up to handle decimal floating point numbers or rounding. Only whole numbers.
When a user types a value into a text entry box in Captivate the value is immediately written to that TEB's associated variable. However, captivate variables are not 'typed'. That is, it does not disinguish between a number or a text string. So you may find that a value such as 79.5 is treated as a string rather than a number, which would then foul up your calculation.
I still think you would need to be taking the calculation out to JavaScript to solve this.
-
6. Re: Is it possible to solve Peukert's equation using text caption boxes and a calculate box?
Tricia0923 Nov 26, 2014 12:12 PM (in response to Tricia0923)Thank you Rod,
I went a totally different way with this.
Don't have the money to learn Javascript at this time. I will soon though.



