myDecimal
并给它一个带小数部分的十进制值(例如5.7
)。 myDecimal
应该是一个数字。
testString: 'assert(typeof myDecimal === "number", "myDecimal
should be a number.");'
- text: myDecimal
应该有一个小数点
testString: 'assert(myDecimal % 1 != 0, "myDecimal
should have a decimal point"); '
```