odoo-13.0/addons/web/static/lib/py.js/lib/py_extras.js
/**
 * Passes the fractional and integer parts of x to the callback, returns
 * the callback's result
 */
Passes the fractional and integer parts of x to the callback, returns
the callback's result
Passes the fractional and integer parts of x to the callback returns the callback ' s result
function modf(x, fn) {
    var mod = x%1;
    if (mod < 0) {
        mod += 1;
    }
    return fn(mod, Math.floor(x));
}
function modf ( x , fn ) { var mod = x % 1 ; if ( mod < 0 ) { mod += 1 ; } return fn ( mod , Math . floor ( x ) ) ; }
Passes the fractional and integer parts of x to the callback, returns
 the callback's result
Passes the fractional and integer parts of x to the callback returns the callback ' s result