%% DEC number x.y convert to (m.n-m) format HEX number An,An-1,...,A(n-m+1).A(n-m),...,A1

format long

%%% format defination

n = 32; %%% N must be integer times of 4
m = 5;

%%% DEC number a.b
x = 0.0078322533;

X = dec2hex(mod(min(round(2^(n-m)*x),2^(n-1)-1),2^n),n/4);