fixed number nonzero implementation