You do not have a function. You are working with numeric constants. A/B is a numeric constant. The integral of a numeric constant from 0 to infinity is sign() of the numeric constant times infinity.
int() is reserved from integrating symbolic expressions or symbolic functions.
integral() can be used for numeric integration, but it has to be passed a function handle as the first argument.
