init({ range: [ [ -1, 6], [ -1, 6 ] ], scale: [ 50, 50 ] }); var f = squareFractions( BIG_PERCENT, 100, 10, 1.37, 0.25 );
The entire grid is 100%.
There are 10 lines total, so each line is 10%.
There are ( BIG_PERCENT / 10).toFixed( 0 ) blue lines, so blue lines represent BIG_PERCENT% of the grid.
init({ range: [ [ -1, 6], [ -1, 6 ] ], scale: [ 50, 50 ] }); var f = squareFractions( PERCENT, 100, 10 );
The entire grid is 100%.
There are 10 columns and 10 rows, so there are 100 squares total.
Therefore, each square is equal to 1%.
There are PERCENT blue squares, so blue squares represent PERCENT% of the grid.
PERCENT\%
of NUMBER
is RESULT
ANSWER_VALUE
?
Percent \cdot
Base = Amount
PERCENT\% \cdot NUMBER = RESULT
Therefore, ANSWER_VALUE
is the ANSWER_NAME.toLowerCase().
RESULT
is PERCENT\%
of NUMBER
ANSWER_VALUE
?
Percent \cdot
Base = Amount
RESULT= PERCENT\% \cdot NUMBER
We can rewrite that as PERCENT\% \cdot NUMBER = RESULT
Therefore, ANSWER_VALUE
is the ANSWER_NAME.toLowerCase().