hi i have this programm
function [IRN,number ] = randnumbers( IRN )
IRN=int32(IRN)
ITOTAL=(IRN*330)+100
ITOTAL=int32(ITOTAL);
IQUOTIENT=ITOTAL/2303
IQUOTIENT=int32(IQUOTIENT);
IRN=ITOTAL-(IQUOTIENT*2303);
IRN=int32(IRN);
number =double(IRN/2303)
return
end
and when i am calling the function the number returns zero and it is not correct because it must be returned 0.2657 with IRN=183