"""
Implementation of an OmniGraph node takes the absolute value of a number
"""


class OgnAbsDouble:
    @staticmethod
    def compute(db):
        db.outputs.out = abs(db.inputs.num)
        return True
