* negating a number
@ 2014-01-15 18:24 Richard Shann
2014-01-15 18:30 ` Mark H Weaver
2014-01-15 18:34 ` Thompson, David
0 siblings, 2 replies; 4+ messages in thread
From: Richard Shann @ 2014-01-15 18:24 UTC (permalink / raw)
To: guile-user
Is there something neater than
(- 0 amount)
to negate a number? Can't spot anything in the manual ...
Richard Shann
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: negating a number
2014-01-15 18:24 negating a number Richard Shann
@ 2014-01-15 18:30 ` Mark H Weaver
2014-01-15 18:37 ` Richard Shann
2014-01-15 18:34 ` Thompson, David
1 sibling, 1 reply; 4+ messages in thread
From: Mark H Weaver @ 2014-01-15 18:30 UTC (permalink / raw)
To: richard; +Cc: guile-user
Richard Shann <richard@rshann.plus.com> writes:
> Is there something neater than
>
> (- 0 amount)
>
> to negate a number? Can't spot anything in the manual ...
Yes: (- amount)
Mark
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: negating a number
2014-01-15 18:24 negating a number Richard Shann
2014-01-15 18:30 ` Mark H Weaver
@ 2014-01-15 18:34 ` Thompson, David
1 sibling, 0 replies; 4+ messages in thread
From: Thompson, David @ 2014-01-15 18:34 UTC (permalink / raw)
To: richard; +Cc: Guile User
On Wed, Jan 15, 2014 at 1:24 PM, Richard Shann <richard@rshann.plus.com> wrote:
> Is there something neater than
>
> (- 0 amount)
>
> to negate a number? Can't spot anything in the manual ...
>
> Richard Shann
It reads better if you leave out the 0.
(- amount)
:)
- Dave Thompson
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: negating a number
2014-01-15 18:30 ` Mark H Weaver
@ 2014-01-15 18:37 ` Richard Shann
0 siblings, 0 replies; 4+ messages in thread
From: Richard Shann @ 2014-01-15 18:37 UTC (permalink / raw)
To: Mark H Weaver; +Cc: guile-user
Hmm, yes of course, I looked up minus and negate and so on in the index,
forgetting that non-words are also indexed...
thank you!
Richard
On Wed, 2014-01-15 at 13:30 -0500, Mark H Weaver wrote:
> Richard Shann <richard@rshann.plus.com> writes:
>
> > Is there something neater than
> >
> > (- 0 amount)
> >
> > to negate a number? Can't spot anything in the manual ...
>
> Yes: (- amount)
>
> Mark
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-15 18:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-15 18:24 negating a number Richard Shann
2014-01-15 18:30 ` Mark H Weaver
2014-01-15 18:37 ` Richard Shann
2014-01-15 18:34 ` Thompson, David
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).