diff options
Diffstat (limited to 'number.h')
-rw-r--r-- | number.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -26,6 +26,14 @@ public: std::string to_dec_string() const; /** + * \brief Return a 32-bits-wide integer that corresponds to this number. + * + * \throws std::out_of_range The number cannot be represented by a single + * 32-bits-wide integer. + */ + std::uint32_t to_uint32() const; + + /** * \brief Return the result of the addition of a number and this number. * * \param n The number to add to this number. |