[#BloombergLP-bdldfp-operator_slash-0ec]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::operator&sol;
:relfileprefix: ../../
:mrdocs:

Divide the value of the specified `lhs` by the specified `rhs` as described by IEEE&hyphen;754, and return the result&period;

== Synopsis

Declared in `&lt;bdldfp&lowbar;decimal&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdldfp/Decimal64.adoc[bdldfp::Decimal64]
operator&sol;(
    xref:BloombergLP/bdldfp/Decimal64.adoc[Decimal64] lhs,
    int rhs);
----

== Description

&ast; If `lhs` is signaling NaN, then store the value of the macro `EDOM` into `errno` and return a NaN&period; &ast; Otherwise if `lhs` is NaN then return a NaN&period; &ast; Otherwise if `lhs` is infinity (positive or negative) and `rhs` is positive value then return infinity value with the same sign as its original value&period; &ast; Otherwise if `lhs` is infinity (positive or negative) and `rhs` is negative value then return infinity value with the opposite sign as its original value&period; &ast; Otherwise if `rhs` is zero, store the value of the macro `ERANGE` into `errno` and return infinity with the same sign it had prior to this operation&period; &ast; Otherwise if dividing the value of `lhs` by the value of `rhs` results in an absolute value that is larger than `std&colon;&colon;numeric&lowbar;limits&lt;Decimal64&gt;&colon;&colon;max()` then store the value of the macro `ERANGE` into `errno` and return infinity with the same sign as that result&period; &ast; Otherwise if dividing the value of `lhs` by the value of `rhs` results in an absolute value that is smaller than `std&colon;&colon;numeric&lowbar;limits&lt;Decimal64&gt;&colon;&colon;min()` then store the value of the macro `ERANGE` into `errno` and return zero with the same sign as that result&period; &ast; Otherwise return the result of dividing the value of `lhs` by the value `rhs`&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
