Mathematically speaking infinity is not a number. BUT! The Real number system can be extended to include the concept of infinity. The resulting set is referred to as the extended Real numbers. Generally the definition goes something like this:
Start with the basic definition:
[tex]\infty > x \forall x \in \mathbb R[/tex]
In english this says, infinity is greater then x for all x in the Real numbers.
note that this is positive infinity, you would need to make a similar definition for negative infinity.
Once you have the definition you must define how it behaves under the basic arithmetic operations:
For addition:
[tex]\infty + x = \infty \forall x \in \mathbb R[/tex]
For Multiplication:
[tex]\infty * x = \infty \forall x \in \mathbb R[/tex]
[tex]\frac 1 \infty = 0[/tex]
etc.
A significant result of these definitions is that the Extended Real Numbers are not a Field.
You may want to search one of Scientific reference (
Wikipedia) for what it means to be a field.