import math


def getChar(inputValue, chars):
    """ 
    Return a character in the given char list, according to the given input value

    Parameters
    ----------
    inputValue : float
        Value you want to tranform to char
    chars : str
        List of chars you will use to select a char to represent the input value
    """
    charArray = list(chars)
    interval = len(charArray)/256
    return charArray[math.floor(inputValue*interval)]