daffv17_lwrmul.m 190 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
%
%  OpenDAFF
%

function [ c ] = daffv17_lwrmul( a, b )
%DAFF_LWRMUL Calculate next lower multiple 
    r = mod(a,b);
    if (r == 0)
        c = a;
    else
        c = a - r;
    end
end