Get the value as float type. ! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessFloat() to check whether the converison is lossless. */
| 1705 | /*! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessFloat() to check whether the converison is lossless. |
| 1706 | */ |
| 1707 | float GetFloat() const { |
| 1708 | return static_cast<float>(GetDouble()); |
| 1709 | } |
| 1710 | |
| 1711 | GenericValue& SetInt(int i) { this->~GenericValue(); new (this) GenericValue(i); return *this; } |
| 1712 | GenericValue& SetUint(unsigned u) { this->~GenericValue(); new (this) GenericValue(u); return *this; } |
nothing calls this directly
no test coverage detected