This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!
Submit FeedbackA solution to last week’s challenge can be found here. Source: https://www.mashupmath.com/blog/expanded-form-with-decimals
This week's challenge is a two parter that will include a follow up challenge next week. For now, we dig into part 1!
If you've ever worked with continuous variables in Designer, you may have noticed that the values are left justified in the Results Window. This can make it a little more difficult to read your dataset. Convert the values provided into a table that lines up the decimals and has only one character per cell.
I was able to make my solution dynamic so it can take as large of a number as needed but will only handle 2 decimal places for now. Maybe I'll be able to beef it up for next week!
I was able to make mine dynamic for the number of digits to the left and right of the decimal but I'm 100% sure there's a simpler way to do it.
Now I have to wait until next week ???? :,(
Interesting challenge. I tried to make it flexible by identifying the number of pre-decimals and decimals in a first step and filling/splitting the result in a second step.