nn::math::DivUp Function

Syntax

template <typename T>
T DivUp(
     T x,
     T y
);

Template Arguments

Name Description
T Type representing a numerical value.

Parameters

Name Description
in x Value to divide by y.
in y Value by which to divide x.

Return Values

Returns the result of dividing x by y, with the remainder rounded up.

Description

Finds the quotient of a division operation that takes two values. The remainder is rounded up.

Revision History

2011/03/01
Initial version.

CONFIDENTIAL