nn::math::DivUp Function

Syntax

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

Template Arguments

Name Description
T Type representing a numeric value

Arguments

Name Description
in x Value to be divided by y
in y The value that x is to be divided by

Return Values

Returns the value that results from rounding up the remainder of x divided by y.

Description

Calculates the quotient from the division of two values. If there is a remainder, it is rounded up.

Revision History

2011/03/01
Initial version.

CONFIDENTIAL