fmod is one of the TclX procs created to perform the Tcl expr fmod function. A built-in command in Tcl 8.5 in ::tcl::mathfunc.