T-F-S / csvsimple

A LaTeX package for lightweight CSV file processing.
http://www.ctan.org/pkg/csvsimple
LaTeX Project Public License v1.3c
24 stars 5 forks source link

[question] How to reduce digits after dot? #26

Closed Freed-Wu closed 1 year ago

Freed-Wu commented 1 year ago

I have searched the texdoc but found nothing related. I hope something like

  \csvautobooktabular[respect percent, digit number=2]{a.csv}

TIA!

T-F-S commented 1 year ago

Transforming the csv content is outside the scope of the package.

But, you may use the siunitx package for number formatting. You find several examples inside the csvsimple-l3 documentation from page 48 on how to use \tablenum from siunitx.