Free Trial

Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #313: Base Converter

Kenda
16 - Nebula
16 - Nebula
Spoiler
Not as slick as @patrick_digan but gets the job done

Kenda_0-1649189833199.png



and vertical iterative macro!

Kenda_1-1649189893615.png

 

balajilolla1
8 - Asteroid
Spoiler
Main Workflow
balajilolla1_0-1649211045144.png

 

Spoiler
Batch Macro
balajilolla1_1-1649211065676.png

 

Spoiler
Iterative Macro
balajilolla1_2-1649211078740.png

 

Kiru
5 - Atom
Spoiler
Drop drown  + simple formula tool IF [Base] = 'Base 16' THEN IntToHex([Decimal]) ELSE IntToBin([Decimal]) ENDIF

Base2.png

Base16.png

Thank you, 

kelly_gilbert
13 - Pulsar

No-macro workflow:

Spoiler
kelly_gilbert_0-1649282980374.png

Interface:
kelly_gilbert_2-1649283131417.png

 

Output:

kelly_gilbert_3-1649283159344.png

Quite a good one, 8 steps including the app inputs, all native functionality and no macros required.

 

Spoiler

Use 'Generate Rows' to determine the maximum that the base divides into the Decimal
Determine the modulo of the divisor to get effectively a key for that character position
Replace that key with the 0-9A-F character depending on the base
Concatenate back together, reversing the string

HarleyBarnes_Quantium_2-1649290088537.png

 


 


 

kelvin_law1
9 - Comet

Here is my solution:

Spoiler
First I built an Iterative Macro to calculate each digit based on the selected base:
kelvinlaw_0-1649316985451.png
kelvinlaw_1-1649317052423.png

Then they will get combined in the analytics app for output:

kelvinlaw_2-1649317102506.png
kelvinlaw_3-1649317136139.pngkelvinlaw_4-1649317167562.png
leozhang2work
10 - Fireball
Spoiler
313 - 1.png313 - 2.png

I went for multi-row calculation to handle reminders. Additional input can be implemented for user to choose what number to convert.

johnyli168
Alteryx
Alteryx

My answer attached.

Spoiler
Workflow:
johnyli168_0-1649379279402.png

Macro:

johnyli168_1-1649379299201.png

 

andrewgu
Alteryx
Alteryx

Solution attached. 

 

 

ChloeHill
5 - Atom

Submitting my first weekly problem solution!

Spoiler

I made an iterative macro to handle the conversion:

ChloeHill_0-1649431186220.png

And used it in an analytic app so the user can input an integer and a base and see their number converted:

ChloeHill_1-1649431240686.png

 

ChloeHill_3-1649431292174.png

Any feedback is welcomed :)