function negativeBracket(s, settings) {
        if ((settings.pSign === 'p' && settings.pNeg === 'l') || (settings.pSign === 's' && settings.pNeg === 'p')) {
            var brackets = settings.nBracket.split(',');
            if (!settings.onOff) {
                s = s.replace(settings.aNeg, '');
                s = brackets[0] + s + brackets[1];
            } else if (settings.onOff && s.charAt(0) === brackets[0]) {
                s = s.replace(brackets[0], settings.aNeg);
                s = s.replace(brackets[1], '');
            }
        }
        return s;
    }
/**
     * places or removes brackets on negative values
     */
places or removes brackets on negative values
places or removes brackets on negative values
function negativeBracket(s, settings) {
        if ((settings.pSign === 'p' && settings.pNeg === 'l') || (settings.pSign === 's' && settings.pNeg === 'p')) {
            var brackets = settings.nBracket.split(',');
            if (!settings.onOff) {
                s = s.replace(settings.aNeg, '');
                s = brackets[0] + s + brackets[1];
            } else if (settings.onOff && s.charAt(0) === brackets[0]) {
                s = s.replace(brackets[0], settings.aNeg);
                s = s.replace(brackets[1], '');
            }
        }
        return s;
    }
function negativeBracket ( s , settings ) { if ( ( settings . pSign === 'p' && settings . pNeg === 'l' ) || ( settings . pSign === 's' && settings . pNeg === 'p' ) ) { var brackets = settings . nBracket . split ( ',' ) ; if ( ! settings . onOff ) { s = s . replace ( settings . aNeg , '' ) ; s = brackets [ 0 ] + s + brackets [ 1 ] ; } else if ( settings . onOff && s . charAt ( 0 ) === brackets [ 0 ] ) { s = s . replace ( brackets [ 0 ] , settings . aNeg ) ; s = s . replace ( brackets [ 1 ] , '' ) ; } } return s ; }
places or removes brackets on negative values
places or removes brackets on negative values