nw::ut::RoundDown Function

Syntax

template <typename ValueT>
ValueT RoundDown(
     ValueT x,
     unsigned int base
);

Arguments

Name Description
in x Number to be rounded down.
in base Value used as the basis for rounding down. Must be a power of two.

Return Values

Returns the value resulting from rounding x down to a multiple of base.

Description

Rounds x down to a multiple of base.


CONFIDENTIAL