Skip to content
Browse files

Round before modulo

  • Loading branch information...
1 parent 1f57ad4 commit eb8034fb16e6cf30013d8034a239407fda38e83c @petercollingridge committed Mar 15, 2013
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">round( ( 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>

0 comments on commit eb8034f

Please sign in to comment.
Something went wrong with that request. Please try again.