Calculated questions with hex values

Calculated questions with hex values

by Mike Vienna -
Number of replies: 2

Dear Moodle Users!

We are currently using 2.5 but this is a general Question.

Is there any way to convert calculated decimal values to hexadecimal?

There are functions for octal and binary, but I cannot find a function for hexadecimal representations.


If there is no standard way or simple workaround:

Can someone give me a hint how to extend the list of available functions, even if this means digging in the PHP source code?


Thanks a lot!

Michael

Average of ratings: -
In reply to Mike Vienna

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Mike Vienna

Re: Calculated questions with hex values

by Jan Derriks -


Hi Mike,

same question. Did you ever get the dechex working? It's standard PHP but Moodle quiz does not accept it while it does accept the binary | and & operators in the answer. Used for programming basics quizzes.