even numbers and odd numbers
Posted: Tue Mar 15, 2022 9:23 am
is there a function to check if a number is even or odd?
thanks
thanks
www.FiveTechSoft.com
https://forums.fivetechsupport.com/~fivetec1/forums/
https://forums.fivetechsupport.com/~fivetec1/forums/viewtopic.php?t=41513
Code: Select all | Expand
function IsEvenNumber( n )
return ( ( n % 2 ) == 0 )
nageswaragunupudi wrote:Code: Select all | Expand
function IsEvenNumber( n )
return ( ( n % 2 ) == 0 )
Code: Select all | Expand
function IsEvenNumber( n )
return ( hb_bitand(n,1) == 0 )