LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Mime-Version: 1.0 (1.0)
Content-Type: text/plain; charset=us-ascii
Date: Wed, 23 Sep 2015 12:04:25 +0800
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
From: Will Robertson <[log in to unmask]>
Message-ID: <[log in to unmask]>
In-Reply-To: <[log in to unmask]>
Content-Transfer-Encoding: 8bit
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Parts/Attachments: 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.

(Sent from phone; please excuse brevity.)