Table of Contents

Method RoundUpAndIncrementIfOdd

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

RoundUpAndIncrementIfOdd(double)

Rounds up the given coordinate value to the nearest integer and increments it by 1 if the result is odd.

public static int RoundUpAndIncrementIfOdd(double value)

Parameters

value double

The coordinate value to process.

Returns

int

An integer that is the rounded-up value incremented by 1 if it is odd.