16,899 reputation
3159
bio website
location France
age
visits member for 3 years, 8 months
seen 1 hour ago

2d
comment Count number of entries with specific value
but quite dispendious with all these additions of powers of 10 or 100... see updated answer for a completely different approach more like the other answers.
2d
revised Count number of entries with specific value
added different method without additions and powers of 10 or 100
2d
answered Count number of entries with specific value
2d
answered Incomprehensible behaviour of calc library with a “foreach variable”
Dec
13
comment Sum of finite series using LaTeX 3
However, if you need sin, cos, exp, log they are not implemented yet in xintexpr, only sqrt is. The \xintthefloatexpr\MySum\relax thing is a bit inefficient as it will first expand \MySum then parse its (longish) numerator and denominator digit by digit. Better is \xintFloat [48]{\MySum} or the slightly prettier \xintPFloat [48]{\MySum} (due to oversight, this \xintPFloat is not documented a.t.t.o.w in xint.pdf). Both can serve as arguments to siunitx's \num macro. For computations with only integers you can use \xinttheiiexpr ...\relax. / = rounded division
Dec
12
answered Sum of finite series using LaTeX 3
Dec
3
awarded  Necromancer
Dec
1
comment Calculating right angle triangle side inside LaTeX
People needing repetitive conversions from a length register to its value in centimeters with 1/1000cm of precision may use: \xintNewIExpr \ToCms [1]{[4] 1/65536/72.27*2.54*protect(\number #1)}. Then \ToCms {\mylength} or \ToCms\mylength does the conversion. Curious people will due \meaning\ToCms to see what it does (it does extra things not needed here but due to the fact that xintexpr allows comma separated things in general). Requires \input xintexpr.sty or \usepackage{xintexpr}. Or \def\ToCms #1{\xintRound {4}{\xintMul {127/236814336[0]}{\number #1}}} with only xintfrac
Nov
29
revised Calculating right angle triangle side inside LaTeX
did Pythagore correctly this time...
Nov
29
answered Calculating right angle triangle side inside LaTeX
Nov
29
answered Floating point calculations in LaTeX?
Nov
29
revised How to compare numbers with decimal point and logical OR operation?
update answer to reflect current xintexpr
Nov
29
comment eplain access to \li number
With release 1.1 from 2014/10/28 of xint there is smaller package xintcore which already contains \xintDec. This being said, your first proposal is the better one, as ultimately \xintDec boils down to it (\xintDec is able to handle arbitrarily big numbers but \numexpr can't go beyond 2147483647). In the first method (but not the second), you don't actually need \number.
Nov
29
comment How to change operator symbols in truth table
Starting with release 1.1 of xint (2014/10/28), it is recommended to use || rather than | and && rather than &. The single letter symbols might be mapped to some other meaning in the future. Also one can use 'or', 'and', 'xor' (quotes mandatory) as infix binary words.
Nov
29
comment Table - Extra alignment tab has been changed to \cr
With release 1.1 of xint (2014/10/28) it is preferred to use || and &&, although | and & are still available. Also 'or' and 'and' are synonyms. (quotes mandatory)
Nov
29
revised How to compare numbers with decimal point and logical OR operation?
updated answer
Nov
29
comment Does etoolbox's \ifboolexpr use lazy evaluation?
With release 1.1 of xint ([2014/10/28]), the || for OR and && for AND are preferred to single | and &. One can also use 'or', 'and', 'xor' (straight quotes mandatory).
Nov
29
revised square root of number in counter
updated answer
Nov
25
awarded  Necromancer
Nov
24
comment View specific pdf version from git repository with linux application
With git checkout COMMIT file.pdf only file.pdf gets modified in your working tree. Then git checkout HEAD file.pdf to reset it.