I know that sometimes the notation .x is used as a short form of 0.x, but I've never heard about x. being a correct number (for instance, 3.). I want to know if it's technically correct to use a short-hand notation with leading/ending dot instead of the full notation. For instance, can numbers 3., .75 and 3.e10 be considered correct or not?
- 131
2 Answers
Often $.3$ will be used as shorthand for $0.3$. I emphasize shorthand cause you really should only ever do this in handwriting that only yourself will be reading. And even then, how much harder is it to write the extra $0$?
Something like $3.$ you might see often in programming languages. Computers treat and store floating point numbers differently than integers, so something like 3. or 3f is used to designate a floating point number. However, again, it is better to write $3.0$, because it is clearer what you mean and not that much harder to write.
Edit: In response to your comment asking if it is "technically correct" or "wrong", there are lots of notational differences among the mathematical community, however, there are only two real standards: correctness and clarity. And some of the best writing often emphasizes the latter over the former. In this case, I'd say it is certainly more clear to write $3.0$
- 5,368
3.can be used in programming languages to force a value to be afloatdata type, or at least to emphasize that it is afloatas opposed to anintdata type. – Jul 18 '17 at 14:12