Re: Odd or Even




"JE McGimpsey" <jemcgimpsey@xxxxxxxx> wrote in message
news:jemcgimpsey-A53803.09451415062005@xxxxxxxxxxxxxxxxxxxxxxx

> I think that the fix to your function would depend on the situation -
> rather than "Invalid value", which necessitates the function return a
> variant, it might be more appropriate to keep the boolean function and
> return False. One could even explicitly type Val as a Long, and perform
> the implicit coercion in which a single or double would be rounded.

Exactly, without knowing the full requirement we are just fishing in the
dark.


.



Relevant Pages