Skip to content

c8_rational_to_double

Dave Hudson edited this page May 3, 2017 · 1 revision

c8::rational::is_zero

auto to_double() const -> double;

Returns the value of this object as a double-precision floating point value.

Return Value

The value of this object, represented as a double-precision floating point value.

Exceptions

  • std::bad_alloc in the event of a memory allocation failure.
  • c8::overflow_error if this object's value is too large to represent as a double-precision value.
  • c8::underflow_error if this object's value is too small (too close to zero) to represent as a double-precision value.

See Also

Clone this wiki locally