Matlab is simply truncating the displayed value for ease of reading.
format longG
sqrt(10001)
In both cases, the actual value matlab holds in memory is within +/- epsilon of the true value. Epsilon can be calculated like so:
eps(sqrt(10001))
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!