[#absl-FDivDuration]
= xref:absl.adoc[absl]::FDivDuration
:relfileprefix: ../
:mrdocs:

Divides a `Duration` numerator into a fractional number of units of a `Duration` denominator&period;

== Synopsis

Declared in `&lt;absl&sol;time&sol;time&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
double
FDivDuration(
    xref:absl/Duration.adoc[Duration] num,
    xref:absl/Duration.adoc[Duration] den);
----

== Description

See also the notes on `InfiniteDuration()` below regarding the behavior of division involving zero and infinite durations&period;

Example&colon;

double d &equals; absl&colon;&colon;FDivDuration(absl&colon;&colon;Milliseconds(1500), absl&colon;&colon;Seconds(1))&semi; &sol;&sol; d &equals;&equals; 1&period;5

== Return Value

The fractional quotient of `num` divided by `den`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *num*
| The numerator duration&period;
| *den*
| The denominator duration&period;
|===


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