[edit, 2921-04-28, clarification, addition on ranking and comparison]
In short: scalar conveys a notion of proportion and product, while number is more specialized, possibly involving ordering.
Let us start with etymology: scalar derives from a Latin adjective (scalaris), akin to the word "ladder" (scala). Its first known usage is from François Viète, one of the fathers of "modern algebra". In his In artem analyticem isagoge (Analytic art, 1591), one finds:
Magnitudes that ascend or descend proportionally in keeping with their
nature from one kind to another may be called scalar terms
(Magnitudines quae ex genere ad genus sua vi proportionaliter
adscendunt vel descendunt, vocentur scalares)
What is in germ here was notably noted by @Ian and @Lee Mosher: "keeping their nature" denotes a "class of objects". Nature can denote areas, lengths, objects of different dimensions. Objects, within the same nature class, can vary in magnitude. And this does not affect their nature. If I multiply a segment of magnitude $3$ meters, by another quantity of $2$ meters, I get $6$ square meters, and have affected the nature of the initial segment. If I multiply it by a unitless quantity, meters remain meters.
So multiplications are binary operations that may operate on quantities of seemingly different nature:
- integer $\times$ fraction,
- complex $\times$ function,
- matrix $\times$ vector.
Possibly, these multiplies are somewhat different in their properties. In computer programming, binary operations can be cast to different natures.
Scalar multiplication denotes the simplest form (yet very generic) of a linear transformation of object $B\in \mathcal{B}$ by scalar $a\in\mathcal{A}$, such that $a\times B\in \mathcal{B}$ is of the same nature as $B$. It is an external binary operation, from $\mathcal{A}\times \mathcal{B}$ to $\mathcal{B}$. Objects in $\mathcal{A}$ are often called scalars, and those in $\mathcal{B}$ vectors.
For practical usefulness, additional requirements are imposed for consistency, such as $a'\times (a\times B)=(a'\times a)\times B$. Scalar multiplication is at play in the definition of a vector space $V$ over field $K$, or in a module $M$ ("vectors") over commutative ring $R$ ("scalars").
So you could have a module defined over the ring of integers, here your scalars would be integers: for instance a $\mathbb{Z}$-module, which agrees with the definition of Abelian groups.
Apparently, Hamilton used "scalar" in English for the first time to denote the real part of quaternions.
Outside algebra, scalar processors handle only one datum at the time, as opposed to vector processors.
Finally, for some people, number also conveys a notion of ordering. One can compare two numbers, in that one is either smaller or bigger than the other. This is a reason why some people would not deem complex values as true numbers.