Uji apakah suatu nilai ganjil
=ISODD(value)
| Parameter | Deskripsi |
|---|---|
value |
The numeric value to check. |
The ISODD function returns TRUE or FALSE:
=ISODD(4) // returns FALSE
=ISODD(3) // returns TRUE
=ISODD(0) // returns FALSE
If cell A1 contains 11, the formula below returns TRUE:
=ISODD(A1) //returns TRUE
Only the integer portion of value is tested. If value is a decimal number, the decimal portion is truncated:
=ISODD(4.1) // returns FALSE
=ISODD(0.33) // returns FALSE
=ISODD(7.4) // returns TRUE