Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use round instead of floor to ensure the hundreds place is correct

  • Loading branch information...
commit 1f57ad487044f35b9a6807eda1e6b86be99afd55 1 parent 02ef7e1
@petercollingridge petercollingridge authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  exercises/converting_decimals_to_fractions_1.html
View
2  exercises/converting_decimals_to_fractions_1.html
@@ -25,7 +25,7 @@
<div class="vars">
<var id="D">randRangeExclude(1, 99, [10,20,30,40,50,60,70,80,90]) / 100</var>
<var id="T">floor( D * 10 )</var>
- <var id="H">floor( ( D * 100 ) % 10 )</var>
+ <var id="H">round( ( D * 100 ) % 10 )</var>
</div>
<p class="question">Express <code><var>D.toFixed( 2 )</var></code> as a fraction.</p>
<p class="solution" data-type="rational" data-simplify="optional"><var>D</var></p>
Please sign in to comment.
Something went wrong with that request. Please try again.