function y = round_float(x, n) % ROUND_FLOAT Round off the fractional part of a floating-point number % % y=round_float(x,n); % % rounds the input vector of floating-point values `x' by approximating % the "fractional part of x" using an `n' bit representation. % % That is, if % x = f*2^m 0.5