LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Classic View

Use Proportional Font
Show HTML Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Will Robertson <[log in to unmask]>
Wed, 23 Sep 2015 12:04:25 +0800
text/plain (17 lines)
Hi Andrew,

Interesting point. 

> On 23 Sep 2015, at 09:49, Andrew Parsloe <[log in to unmask]> wrote:
> 
> \int_eval:n { - (1+2) }
> 
> gives a "Missing number, treated as zero" message. So does \int_eval:n { + (1+2) }. But
> 
> \int_eval:n { 0 - (1+2) }

From memory \numexpr chains +ve and -ve signs appropriately... I'm not sure if it's a good idea but I wonder if prepending "0+" to every <int expr> would work to make this interface a bit more general without adding too much overhead.

Will
(Sent from phone; please excuse brevity.) 

ATOM RSS1 RSS2