import math
import random


def prob_round(x):
    """
    Rounds up with probability proportional to decimal places.
    """

    floor = math.floor(x)
    if random.random() < x - floor:
        floor += 1
    return floor