If a random variable $Y$ is a priori uniformly distributed in $[0,100]$, and you learn later that its value is in fact $\leq x$, then conditioned on this additional information it is uniformly distributed in $[0,x]$. It follows that the conditional expectation of $Y$ then is ${x\over2}$.