even numbers and odd numbers
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
is there a function to check if a number is even or odd?
thanks
thanks
www.FiveTechSoft.com
https://forums.fivetechsupport.com/
https://forums.fivetechsupport.com/viewtopic.php?f=3&t=41513
function IsEvenNumber( n )
return ( ( n % 2 ) == 0 )
nageswaragunupudi wrote:
- Code: Select all Expand view
function IsEvenNumber( n )
return ( ( n % 2 ) == 0 )
function IsEvenNumber( n )
return ( hb_bitand(n,1) == 0 )