import math


def scanette_status(intval, floatval):
    """Convert Event status value into Scanette status/result field.

    Scanette result values are sometimes int, sometimes float, sometimes "?".
    """
    if intval == floatval:
        return intval
    if math.isnan(floatval):
        return "?"
    return floatval