[pstricks] Less decimals than defined in axis

Juergen Gilg gilg at acrotex.net
Tue Aug 26 16:29:04 CEST 2008


Hi Christoph,

thanks for the hint!

Would

0.37 10 mul round 10  div

deliver the wanted result?

Regards,

Juergen



Christoph Bersch wrote:
> Hi,
>
> Juergen Gilg schrieb:
>   
>> there is a PostScript function called _round_.
>>
>> You can enter
>>
>> 0.37 round which hopefully then delivers 0.4
>>     
>
> No, round gives you the nearest integer:
>
> 0.37 round -> 0
>
> However, in pstricks-add the counting of the decimals is done on TeX 
> side. So the rounding must be implemented also using TeX as the rounded 
> result from the Postscript operation cannot be assigned to TeX-code and 
> typeset afterwards :-(
>
> Christoph
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
>   

-- 
 Jürgen Gilg
 Austr. 59
 70376 Stuttgart
-------------------------------------
 Tel       0711.59 27 88
 e-Mail    gilg at acrotex.net
 Websites  www.acrotex.net
           www.brueckenkurs-physik.de
           www.gilligan-online.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20080826/7b4242b2/attachment.html 


More information about the PSTricks mailing list