js/calc-model.js
/* Divide current input or result by 100. */
Divide current input or result by 100.
Divide current input or result by 100 .
function percentage() {
    if (data.show !== data.accumulator) { 
        data.operands[data.cursor] = toPercentage(data.operands[data.cursor]);
        data.show = data.operands[data.cursor];
    } else {
        data.accumulator /= 100;
        data.show = data.accumulator;
        if (data.operands[0]) data.operands[0] /= 100;
    }
}
function percentage ( ) { if ( data . show !== data . accumulator ) { data . operands [ data . cursor ] = toPercentage ( data . operands [ data . cursor ] ) ; data . show = data . operands [ data . cursor ] ; } else { data . accumulator /= 100 ; data . show = data . accumulator ; if ( data . operands [ 0 ] ) data . operands [ 0 ] /= 100 ; } }
Divide current input or result by 100.
Divide current input or result by 100 .
// data.show points to one of the operand