2 Jun
1998
2 Jun
'98
11:49 p.m.
Sven Hilscher a écrit:
writeln ( abs ( -12.1 : 0 : 1 ) ); (* 12.1 *);
^^^^^^^^^^^ I think, something is goin wrong...
No no, at least in BP, the actual length is adjusted upwards to contain what needs to be written if the specified length is too short. So with a specified length of 0 it adjusts in any case to the minimum length necessary to accomodate the number with the specified number of decimals. Bizarre but very handy in fact. -- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 51 45 44 mailto:Maurice.Lombardi@ujf-grenoble.fr