myDecimal
and give it a decimal value with a fractional part (e.g. 5.7
).
myDecimal
should be a number.
testString: 'assert(typeof myDecimal === "number", ''myDecimal
should be a number.'');'
- text: myDecimal
should have a decimal point
testString: 'assert(myDecimal % 1 != 0, ''myDecimal
should have a decimal point''); '
```