[Tutor] Force a value to int

Ed Singleton singletoned at gmail.com
Thu Apr 13 13:51:51 CEST 2006

Is there a particular way to force a value to be an int by either
converting it with int() or returning a default value.

I've ended up writing my own function to do it, but it seems like the
kind of thing that would be built-in somewhere.


More information about the Tutor mailing list