Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #43381 from petercollingridge/floor_to_round

fix #41894;

Test plan: Check some example exercises and ensure that the hundredths place is correctly given in the hints.

Auditors: beneater, alpert
  • Loading branch information...
commit 050dcce20a158900fc9fac5454bb04c8dc07f1a2 2 parents 65ba1c9 + eb8034f
@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.