Khan/khan-exercises

Subversion checkout URL

You can clone with HTTPS or Subversion.

Fetching contributors…

Cannot retrieve contributors at this time

32 lines (29 sloc) 1.404 kb
 Changing decimals to percents
randRange( 50, 999 ) / 1000 DECIMAL * 100

Express DECIMAL as a percent.

SOLN %

To convert a decimal to a fraction, we need to multiply by 100 and add the \% symbol.

To multiply by 100, we can just move the decimal point two places to the right.

DECIMAL \rightarrow DECIMAL * 10 \rightarrow SOLN

So DECIMAL = SOLN\%.

Something went wrong with that request. Please try again.