File: testcases.tex

package info (click to toggle)
mathjax-siunitx 0.1-3
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm, forky, sid, trixie
  • size: 2,232 kB
  • sloc: javascript: 3,927; python: 247; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 720 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
% various \num corner cases
\num{<<-1-+1ie.0x>>2e14 , 2}
\num{<<-,1-+1ie.0/>>2e14 , 2}
\num{1x>=2/<=3(1)e.1x<<4-i1.(1)e1/4+2ix5} % multiple quotients and products
\num[round-integer-to-decimal,zero-decimal-to-integer,round-mode=figures]{1} % round-integer-to-decimal vs. zero-decimal-to-integer
\num[scientific-notation=engineering]{12e2.1} % scientific-notation and fractional exponents?
\num[minimum-integer-digits=3,scientific-notation=engineering]{000012.1e2} % leading zeros?

% different number of decimal places between uncertainty and number
\num{1 +- 0.002}
\num{1.0 +- 0.002}
\num{1.00 +- 0.002}
\num{1.000 +- 0.002}
\num{1.0000 +- 0.002}

% preunits
\SIrange{10e3}{20e3}[CHF]{\per\kg} % preunits and SIrange?