- publishing free software manuals
GNU Scientific Library Reference Manual - Third Edition (v1.12)
by M. Galassi, J. Davies, J. Theiler, B. Gough, G. Jungman, P. Alken, M. Booth, F. Rossi
Paperback (6"x9"), 592 pages, 60 figures
ISBN 0954612078
RRP £24.95 ($39.95)

Get a printed copy>>>

4.6 Testing for Odd and Even Numbers

Macro: GSL_IS_ODD (n)
This macro evaluates to 1 if n is odd and 0 if n is even. The argument n must be of integer type.
Macro: GSL_IS_EVEN (n)
This macro is the opposite of GSL_IS_ODD(n). It evaluates to 1 if n is even and 0 if n is odd. The argument n must be of integer type.
ISBN 0954612078GNU Scientific Library Reference Manual - Third Edition (v1.12)See the print edition