AnsweredAssumed Answered

Quiz Question Complex Formula

Question asked by cesbrandt on Jan 29, 2016
Latest reply on Feb 1, 2016 by James Jones

We have a course that includes the conversion of binary to decimal and vice versa. Setting up a Formula Question for the binary to decimal was easy:


Question: Convert the binary number [bit8][bit7][bit6][bit5][bit4][bit3][bit2][bit1] to decimal.
Variable Definitions:

VariableMinMaxDecimal Places
bit8010
bit7010
bit6010
bit5010
bit4010
bit3010
bit2010
bit1010


Formula Definition: bit8*128+bit7*64+bit6*32+bit5*16+bit4*8+bit3*4+bit2*2+bit1


However, reversing this question is much more difficult because there is now "flat" formula capable to determining the binary of a decimal.

 

Is it possible to make a recursive formula in Canvas that could be used to this end? If so, how? I couldn't find anything in the documentation on setting up a complex formula.

Outcomes