Even

integer_number 為偶數或零,Even() 會傳回 True (-1)。若 integer_number 為奇數,會傳回 False (0);若 integer_number 為非整數,則會傳回 NULL

Syntax:  

Even(integer_number)

Return data type: 布林

Examples and results:  

範例 結果

Even( 3 )

傳回 0,False

Even( 2 * 10 )

傳回 -1,True

Even( 3.14 )

傳回 NULL

See also: