* Change the value of the variable, considered as a number * @param newValue The new value to be set
(newValue: float)
| 577 | * @param newValue The new value to be set |
| 578 | */ |
| 579 | setNumber(newValue: float) { |
| 580 | this._type = 'number'; |
| 581 | //@ts-ignore parseFloat does accept numbers. |
| 582 | newValue = parseFloat(newValue); |
| 583 | this._value = newValue === newValue ? newValue : 0; // Prevent NaN |
| 584 | } |
| 585 | |
| 586 | /** |
| 587 | * Get the value of the variable, considered as a string |
no outgoing calls
no test coverage detected