[#FeeFrac-Div]
= xref:FeeFrac.adoc[FeeFrac]::Div
:relfileprefix: ../
:mrdocs:

Helper function for 96&sol;32 signed division, rounding towards negative infinity (if round&lowbar;down), or towards positive infinity (if !round&lowbar;down)&period; This is a version relying on &lowbar;&lowbar;int128&period;

== Synopsis

Declared in `&lt;util&sol;feefrac&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int64&lowbar;t
Div(
    &lowbar;&lowbar;int128 n,
    int32&lowbar;t d,
    bool round&lowbar;down) noexcept;
----

== Description

The result must fit in an int64&lowbar;t, and d must be strictly positive&period;

== Return Value

The quotient, rounded as requested&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *n*
| The 128&hyphen;bit signed dividend&period;
| *d*
| The strictly positive 32&hyphen;bit divisor&period;
| *round&lowbar;down*
| Whether to round towards negative infinity (true) or positive infinity (false)&period;
|===


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