Be more specific on what decimal number is needed
parent
c101d009d3
commit
c0cbba6efe
|
@ -413,7 +413,7 @@
|
|||
"We can store decimal numbers in variables too. Decimal numbers are sometimes referred to as <dfn>floating point</dfn> numbers or <dfn>floats</dfn>.",
|
||||
"<strong>Note</strong><br>Not all real numbers can accurately be represented in <dfn>floating point</dfn>. This can lead to rounding errors. <a href=\"https://en.wikipedia.org/wiki/Floating_point#Accuracy_problems\" target=\"_blank\">Details Here</a>.",
|
||||
"<h4>Instructions</h4>",
|
||||
"Create a variable <code>myDecimal</code> and give it a decimal value."
|
||||
"Create a variable <code>myDecimal</code> and give it a decimal value with a fractional part (e.g. <code>5.7</code>)."
|
||||
],
|
||||
"challengeSeed": [
|
||||
"var ourDecimal = 5.7;",
|
||||
|
|
Loading…
Reference in New Issue