I have created a number of calculations with lots of triggers and variables and everything is working perfectly!!! Yea Storyline!!!
Here's my issue: I hate the formatting of the numbers when I place the calculated value back into a slide...Is there a way to remove the decimal places or format similar to say....Excel? Not sure that I have seen any functions or formatting options for numbers.
In the beta program and since, I have not seen anything regarding rounding or formatting of variables. I know Lectora had functionality to round variables to a certain number of decimal places, which was great for calculations. I've not seen this functionality with Storyline - but it would be a great feature request.
So this topic (or at least this thread's not gotten any love) in 2 years? Please say SL2 has rectified this huge shortcoming :( I want to format a numer with commas (31,395) and use rounded % (23% of our employees are in a certain office)... not possible?
I haven't seen any automatic behavior of rounding the variables and I know the comma issue was mentioned as a feature request for those languages/countries that use commas vs. decimal points. Have you looked at using some Javascript to round the numbers? It's not something I can offer support for, but a number of forums users are Javascript pros. You can also review the information here in regards to our Javascript best practices.
Thanks Ashley. Honestly I have no experience with using JavaScript, sounds a little intimidating but I'll dive into it. It would seem articulate could design number formatting such as commas, decimals etc. very easily such in an Excel-like fashion.
Chris, I agree this would be a very useful feature. This was a thread a while back about rounding quiz scores without using javascript but I can't find it at the moment. I bet Ashley can ;-)
In the meantime I would suggest submitting a feature request. I may have already put one in but I'm going to do so now in any case.
This one deals with rounding *without* Javascript. Here is one with Javascript. Not sure if those were the ones you were thinking of - but they were some of the top ones I found in a quick search.
Brett, I didn't know about the feature request option, thanks for the link. Done! I asked for 3 features. 1) an interface to import and export variables. Importing would facilitate establishing new variables or editing values. Exporting would facilitate QC review, editing within Excel, and reimporting. 2) formatting and calculation rounding similar to excel that could be set for all variables, groups of variables or individual ones such as via checkboxes. 3) more of a nice to have, to make the means of calculations less clunky and again, more like Excel. For example, the simple expression variable3 = equals variable1 x variable2 should be one statement or "trigger". The current interface requires two steps, One version of which is Set Variable3 = Variable1. Then, adjust Variable3 to x Variable2.
@Ashley - you bet - frankly quite surprised there hasn't been a clamoring for this sort of thing, hopefully will be out within the year...
Chris Roetzer
chrisroetzer@yahoo.com
I am relatively new to Articulate and do not know Java. Would there be anyone willing to guide me on how to take a number variable and add commas? I have tried unsuccessfully to do this on my own for a game I created in Storyline 2.0
This thread is a bit older, so I don't know if folks are still subscribed. You could look at messaging them directly using the "contact me" button on their profiles, or I know there are a number of other forum discussions where folks discuss how to implement Javascript. It's not something I can assist with unfortunately though.
13 Replies
In the beta program and since, I have not seen anything regarding rounding or formatting of variables. I know Lectora had functionality to round variables to a certain number of decimal places, which was great for calculations. I've not seen this functionality with Storyline - but it would be a great feature request.
Feel free to request it - http://www.articulate.com/support/contact/submit.php?form=feature
So this topic (or at least this thread's not gotten any love) in 2 years? Please say SL2 has rectified this huge shortcoming :( I want to format a numer with commas (31,395) and use rounded % (23% of our employees are in a certain office)... not possible?
Hi Chris,
I haven't seen any automatic behavior of rounding the variables and I know the comma issue was mentioned as a feature request for those languages/countries that use commas vs. decimal points. Have you looked at using some Javascript to round the numbers? It's not something I can offer support for, but a number of forums users are Javascript pros. You can also review the information here in regards to our Javascript best practices.
Thanks Ashley. Honestly I have no experience with using JavaScript, sounds a little intimidating but I'll dive into it. It would seem articulate could design number formatting such as commas, decimals etc. very easily such in an Excel-like fashion.
Sent from my iPhone
Chris, I agree this would be a very useful feature. This was a thread a while back about rounding quiz scores without using javascript but I can't find it at the moment. I bet Ashley can ;-)
In the meantime I would suggest submitting a feature request. I may have already put one in but I'm going to do so now in any case.
Challenge accepted Brett. ;-)
This one deals with rounding *without* Javascript. Here is one with Javascript. Not sure if those were the ones you were thinking of - but they were some of the top ones I found in a quick search.
The more feature requests the better!
Ashley, that was the one I was thinking about. It's actually quite clever. Thanks.
Glad I found it Brett - I'm going to add mind reading to my resume. ;-)
Brett, I didn't know about the feature request option, thanks for the link. Done! I asked for 3 features. 1) an interface to import and export variables. Importing would facilitate establishing new variables or editing values. Exporting would facilitate QC review, editing within Excel, and reimporting. 2) formatting and calculation rounding similar to excel that could be set for all variables, groups of variables or individual ones such as via checkboxes. 3) more of a nice to have, to make the means of calculations less clunky and again, more like Excel. For example, the simple expression variable3 = equals variable1 x variable2 should be one statement or "trigger". The current interface requires two steps, One version of which is Set Variable3 = Variable1. Then, adjust Variable3 to x Variable2.
Sent from my iPhone
Thanks Chris for sending along those feature requests - I could see a lot of users with a need for those so I appreciate you sharing.
@Ashley - you bet - frankly quite surprised there hasn't been a clamoring for this sort of thing, hopefully will be out within the year...
Chris Roetzer
chrisroetzer@yahoo.com
I am relatively new to Articulate and do not know Java. Would there be anyone willing to guide me on how to take a number variable and add commas? I have tried unsuccessfully to do this on my own for a game I created in Storyline 2.0
Hi Sandy,
This thread is a bit older, so I don't know if folks are still subscribed. You could look at messaging them directly using the "contact me" button on their profiles, or I know there are a number of other forum discussions where folks discuss how to implement Javascript. It's not something I can assist with unfortunately though.
This discussion is closed. You can start a new discussion or contact Articulate Support.