[system] / trunk / pg / macros / PGbasicmacros.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/PGbasicmacros.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5626 Revision 5688
1368usage: %0.3f 3 decimal places, fixed notation; %0.3e 3 significant figures exponential notation; %0.3g uses either fixed 1368usage: %0.3f 3 decimal places, fixed notation; %0.3e 3 significant figures exponential notation; %0.3g uses either fixed
1369or exponential notation depending on the size of the number.) 1369or exponential notation depending on the size of the number.)
1370 1370
1371Two additional legacy formatting constructions are also supported: 1371Two additional legacy formatting constructions are also supported:
1372 1372
1373C<?{$c:%0.3f} > will give a number with 3 decimal places and a negative 1373C<!{$c:%0.3f} > will give a number with 3 decimal places and a negative
1374sign if the number is negative, no sign if the number is positive. 1374sign if the number is negative, no sign if the number is positive. Since this is
1375identical to the behavior of C<{$c:%0.3f}> the use of this syntax is depricated.
1375 1376
1376C<!{$c:%0.3f}> determines the sign and prints it 1377C<?{$c:%0.3f}> determines the sign and prints it
1377whether the number is positive or negative. 1378whether the number is positive or negative. You can use this
1379to force an expression such as C<+5.456>.
1378 1380
1379=head3 EV2 1381=head3 EV2
1380 1382
1381 TEXT(EV2(@text)); 1383 TEXT(EV2(@text));
1382 1384

Legend:
Removed from v.5626  
changed lines
  Added in v.5688

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9