Calculated questions with hex values

Calculated questions with hex values

Mike Vienna -
回帖数: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

回复Mike Vienna

本讨论区帖子已移除

本讨论区帖子的内容已移除,无法再访问。
回复Mike Vienna

Re: Calculated questions with hex values

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.