I remember that in Classical mechanics we have defined action for different paths a system can take. An action is defined as an integral of lagrangian times the time differential. So as a result we have taken lagrangian(which is a function of the generalized coordinates) and evaluated the action which is a scalar(or a number).