Home Search

DriveWorks Solo 21
Odd

Send Feedback

Odd

This function rounds a positive number up, and a negative number down, to the nearest odd integer.

Syntax

Odd([Number])

Where:

Number is a number or a reference to a number to be rounded.

If the number is positive, the Odd function, when calculated, will return the specified number, rounded up to the nearest odd integer

If the number is negative, the Odd function, when calculated, will return the specified number, rounded down to the nearest odd integer

Examples

Rule

Meaning
Odd(CustomerNumberTextBoxReturn)Depending on if the return value from the CustomerNumberTextBox is positive or negative, the Odd function will return the value of the CustomerNumberTextBoxReturn, rounded up or down, to the nearest odd integer.

Example Outcomes

CustomerNumberTextBoxReturn Value

Result of the Odd function

1213
-12-13
17.219
14.3215
-9.42-11