def scaleprob(prob: float, factor: float=100) ->int:
    """
    Provide consistent scaling of values into integer space. This maintains a
    minimum value of 1.

    Args:
        prob: probability value, typically from 0 to 1
        factor: scale factor

    Returns:
        scaled probability value
    """
    prob *= factor
    if prob < 1:
        return 1
    return int(prob)
