[#absl-Floor] = xref:absl.adoc[absl]::Floor :relfileprefix: ../ :mrdocs: Floors a duration using the passed duration unit to its largest value not greater than the duration. == Synopsis Declared in `<absl/time/time.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/Duration.adoc[Duration] Floor( xref:absl/Duration.adoc[Duration] d, xref:absl/Duration.adoc[Duration] unit); ---- == Description Example: absl::Duration d = absl::Nanoseconds(123456789); absl::Duration b = absl::Floor(d, absl::Microseconds(1)); // 123456us == Return Value `d` floored to a multiple of `unit`. == Parameters [cols="1,4"] |=== | Name| Description | *d* | The duration to floor. | *unit* | The unit to floor to. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#