lib/determine-basal/determine-basal.js
function round(value, digits)
{
    if (! digits) { digits = 0; }
    var scale = Math.pow(10, digits);
    return Math.round(value * scale) / scale;
}
function round(value, digits)
{
    if (! digits) { digits = 0; }
    var scale = Math.pow(10, digits);
    return Math.round(value * scale) / scale;
}
function round ( value , digits ) { if ( ! digits ) { digits = 0 ; } var scale = Math . pow ( 10 , digits ) ; return Math . round ( value * scale ) / scale ; }
Rounds value to 'digits' decimal places
Rounds value to digits decimal places