Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric Function
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00257970
Message ID:
00257998
Views:
19
Here's an Odd Predicate function
FUNCTION OddP(n)
return 1 = mod(int(n), 2)
endfunc
hth
>Am I missing the boat here.
>
>Is there a way to determine is a numeric value is odd or even? or even whole or fractional?
>
>Thanks
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Reply
Map
View

Click here to load this message in the networking platform