HomeManualTopicsTypesSymbols

std::is_odd

returns true if the specified value is odd, false otherwise

Parameter

n
the value to check

Result

success
true or false

Example

dump! `is_odd(123)

Output

is_odd(123): <true>

Example

dump! `is_odd(124)

Output

is_odd(124): <false>

Topic

Math

See also

std::is_even returns true if the specified value is even, false otherwise