Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (36 sloc) 1.533 kb
<!DOCTYPE html>
<html data-require="math math-format graphie graphie-helpers-arithmetic">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Subtracting decimals 0.5</title>
<script data-main="../local-only/main.js" src="../local-only/require.js"></script>
<div class="exercise">
<div class="vars" data-ensure="A_FLOAT &gt; B_FLOAT">
<var id="A">randRange( 101, 999 )</var>
<var id="B">randRange( 101, 999 )</var>
<var id="A_DECIMAL">1</var>
<var id="B_DECIMAL">1</var>
<var id="A_FLOAT">A / pow( 10, A_DECIMAL )</var>
<var id="B_FLOAT">B / pow( 10, B_DECIMAL )</var>
<div class="problems">
<p><code>\Huge{<var>localeToFixed(A_FLOAT, A_DECIMAL)</var> - <var>localeToFixed(B_FLOAT, B_DECIMAL)</var> = {?}}</code></p>
<p class="solution" data-type="decimal"><var>A_FLOAT - B_FLOAT</var></p>
<div class="hints">
<div class="graphie" id="numbers">
graph.adder = new DecimalSubtractor( A, A_DECIMAL, B, B_DECIMAL );;
<div class="graphie" data-each="DecimalSubtractor.numHintsFor( A, A_DECIMAL, B, B_DECIMAL ) times" data-update="numbers">
Jump to Line
Something went wrong with that request. Please try again.