Skip to content

c8_integer_magnitude

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

c8::integer::magnitude

auto magnitude(const integer &v) const -> natural;

Returns the magnitude (absolute) value of this object.

Return Value

A c8::natural that represents the magnitude of this object.

Exceptions

  • std::bad_alloc in the event of a memory allocation failure.

See Also

Clone this wiki locally