simon-git: spigot (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sat Mar 18 18:51:58 GMT 2017
TL;DR:
1573a63 Add the sign function.
Repository: https://git.tartarus.org/simon/spigot.git
On the web: https://git.tartarus.org/?p=simon/spigot.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2017-03-18 18:51:58
commit 1573a63a3027af604aeaecaf7857dead1ab5246c
web diff https://git.tartarus.org/?p=simon/spigot.git;a=commitdiff;h=1573a63a3027af604aeaecaf7857dead1ab5246c;hp=02cd6ee8679175eac06f46306ac50761e040528b
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Mar 18 18:43:46 2017 +0000
Add the sign function.
A user asked for it just now. It's not the most useful thing ever,
because (apart from obvious cases like rationals) it will find it
difficult to ever return zero; but since I provide the same function
in the Python module, that doesn't seem like a good reason not to add
it anyway for the sake of the situations it _is_ useful in.
expr.cpp | 1 +
funcs.h | 1 +
manpage.but | 6 ++++++
manual.but | 5 +++++
test.sh | 5 +++++
unary.cpp | 11 +++++++++++
6 files changed, 29 insertions(+)
More information about the tartarus-commits
mailing list