ardexaplugin.py
def convert_words_to_float(high_word, low_word):
    """Convert two words to a floating point"""
    number, retval = convert_words_to_uint(high_word, low_word)
    if not retval:
        return 0.0, False

    try:
        packed_float = struct.pack('>l', number)
        return struct.unpack('>f', packed_float)[0], True
    except:
        return 0.0, False
def convert_words_to_float(high_word, low_word):
    """Convert two words to a floating point"""
    number, retval = convert_words_to_uint(high_word, low_word)
    if not retval:
        return 0.0, False

    try:
        packed_float = struct.pack('>l', number)
        return struct.unpack('>f', packed_float)[0], True
    except:
        return 0.0, False
def convert_words_to_float ( high_word , low_word ) : number , retval = convert_words_to_uint ( high_word , low_word ) if not retval : return 0.0 , False try : packed_float = struct . pack ( '>l' , number ) return struct . unpack ( '>f' , packed_float ) [ 0 ] , True except : return 0.0 , False
Convert two words to a floating point
Convert two words to a floating point