-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 31 Oct 2007, Ionel Mugurel Ciobica wrote:

> Stie cineva ce este gresit cu 8 si 9, si de ce nu este nimic gresit cu
> celelalte cifre: 1, 2, 3, 4, 5, 6, 7 si 0?
> 
> Exemplu:
> 
> for nr in `seq -w 0 10` ; do printf "%2i\n" $nr ; done
> 
> La 8 si 9 da eroare si arata 0 in loc de 8 sau 9.
> 
> Explicatii, solutii, ceva? Stiu, pot lasa '-w' deoparte, dar nu inteleg
> de ce merge cu 7 si nu cu 8... Are ceva de a face cu baza 8?
Pentru ca numerele care incep cu 0 sunt interpretate in octal.


Gabriel

- -- 

The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of, or taking any action in reliance upon, this
information by persons or entities other than the intended
recipient is prohibited. If you receive this in error, please
contact the sender and delete the material from any computer.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFHKF5ZeWrbH+aEIG4RAgv+AJwK8cAEKXO5A8JnwWvxz2nPL9vSJQCdFoVj
j+EX3qHQjcI4QEom6Tw+RxM=
=J0fn
-----END PGP SIGNATURE-----

_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui