[pstricks] Suggestions for \psPrintValue
Buddy Ledger
buddyledger at gmail.com
Mon Apr 27 05:17:46 CEST 2009
>You might get some ideas from the appended file, which gives a way to
>round a number given in either conventional form or in formats like
>1.23E-04 or -12.34e005, to a fixed number of decimal places. It works
>entirely at the TeX level, so there is no need to call \psPrintValue
>unless you have a number that is the result of a Postscript
>computation. This is not a completed package---the handling of the
>case where \decplaces<0 in not yet finished. Also, the size of numbers
>handled is limited. The string of output digits, not counting the
>period and sign, must be no more than 2^{31}, as it is stored in a
>single count register, unlike the fp package. The other thing is that
>\decplaces should have been handled as a keyword. See the end of the
>file for usage and test examples.
Thanks, Micheal. I tryed running the code but I get an error (see below).
I'm running MikTex 2.7 on WindowsXP. I am really interested in the capability to read
numbers in scientific notation. To my knowledge (which is admittedly limited on the subject)
I don't believe anyone else has implimented a package to deal with numbers in 1E-4 notation.
It is important for me since I have many data files which are formatted as such.
! TeX capacity exceeded, sorry [input stack size=5000].
\hasanE #1E#2\@nil ->\hasanE #1
E\@nil \xdef \@tmpA {#1}\xdef \@tmpB
{#2}\ifx...
l.177 12E-02 & \fmtnum{12E-02}
\\
No pages of output.
Transcript written on New.log.
More information about the PSTricks
mailing list