nn::math::RoundDown Function

Syntax

template <typename T>
T RoundDown(
     T x,
     u32 base
);

Template Arguments

Name Description
T Type representing a numeric value

Arguments

Name Description
in x Target value
in base Base value

Return Values

Returns the largest multiple of base that is equal to or less than x.

Description

Rounds down the value so that it is a multiple of the specified value.

Revision History

2011/03/01
Initial version.

CONFIDENTIAL