Source code for moodlesg.math.functions.extended

from moodlesg.math.base import Expression, _bool


[docs]def trunc(expr): return Expression.__trunc__(expr)
[docs]def bool(expr): """ Implement truth value testing. Expression is considered true if its result is nonzero. """ return _bool(expr)