Investment Studio > Expressions > Functions > Math & Trig > ODD

float odd(float argument)

Returns the argument rounded away from zero to the nearest odd integer.

Examples

=odd(2.5)

equals 3 (first step after 2.5 in the sequence 1, 3)

=odd(-4)

equals -5 (first step after -4 in the sequence -1, -3, -5).

See also ceiling, even, floor, frac, int, mround, round, rounddown, roundup, trunc.