Liste des Groupes | Revenir à cl c |
bart <bc@freeuk.com> writes:
[...]Since numbers using exponents without also using decimal points are
rare in my code base, I've decided to experiment with numbers like
1e6 being integer constants rather that floats. (This is IN my
language.)
You might want to look at Ada for existing practice.
In C, a constant with either a decimal point or an exponent is
floating-point. In Ada, 1.0e6 is floating-point and 1e6 is an
integer. Of course this isn't very helpful if you want to represent
numbers with a lot of non-zero digits; for that, you need digit
separators.
[...]
Les messages affichés proviennent d'usenet.