pgfmath-xfp
Define pgfmath functions using xfp
- Version:
- 1.0
- Copyright:
- Jonathan P. Spratte
- License:
- lppl1.3c
- Packaged on:
- 05/20/2021 20:11:12
- Number of files:
- 5
- Size on disk:
- 266.07 kB
This package allows to define pgfmath functions that use the xfp fpu for their calculations. The input arguments are parsed with pgfmath (while the pgf-fpu is locally active), and the results are forwarded to xfp’s fpu for the function evaluation. The result of that calculation is then parsed by pgfmath again (with the surrounding settings of pgfmath). This way the functions should be usable in every pgfmath context, though there is some overhead to this approach. The package is only meant as a temporary stopgap until a more dedicated solution is available to use xfp in pgf.