[metapost] scientific format for large numbers

Richard Vernhes richard.vernhes at polymtl.ca
Tue Sep 20 00:30:37 CEST 2005


Hi,
I have a problem with the scientific format of numbers in Metapost.  
Here is my script:

input format;
input sarith;
input marith;
prologues:=0;
beginfig(1);
label.(format("%3g",32000),(0,0));
endfig;
end

When I include the file in a Latex file, run Miktex 2.4, and then look 
at the resulting poscript file, I obtain 3.2x10^4, which is expected, 
but x10^4 is written below 3.2, not on the same line.
Does anyone know a way to solve this problem?
Thank's



More information about the metapost mailing list