summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2020-10-11 18:48:20 +0000
committerchristos <christos@NetBSD.org>2020-10-11 18:48:20 +0000
commit92c0b9409d8793c81c518701ddabce49666ea951 (patch)
treefd083cba88d47b25931b52a2246026bdbaf335ae
parent09eda2a955fa397d0cfc40015fe8a8a1718a8118 (diff)
downloadbsdgames-darwin-92c0b9409d8793c81c518701ddabce49666ea951.tar.gz
bsdgames-darwin-92c0b9409d8793c81c518701ddabce49666ea951.tar.zst
bsdgames-darwin-92c0b9409d8793c81c518701ddabce49666ea951.zip
mention hex numbers
-rw-r--r--factor/factor.67
1 files changed, 5 insertions, 2 deletions
diff --git a/factor/factor.6 b/factor/factor.6
index ccaf176c..3522b1ff 100644
--- a/factor/factor.6
+++ b/factor/factor.6
@@ -1,4 +1,4 @@
-.\" $NetBSD: factor.6,v 1.16 2020/10/04 14:22:52 kre Exp $
+.\" $NetBSD: factor.6,v 1.17 2020/10/11 18:48:20 christos Exp $
.\"
.\" Copyright (c) 1989, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -35,7 +35,7 @@
.\"
.\" By Landon Curt Noll, http://www.isthe.com/chongo/index.html /\oo/\
.\"
-.Dd October 3, 2020
+.Dd October 11, 2020
.Dt FACTOR 6
.Os
.Sh NAME
@@ -73,6 +73,9 @@ arguments,
reads numbers, one per line, from standard input, until end of file or error.
Leading white-space and empty lines are ignored.
Numbers may be preceded by a single +.
+Numbers that start with
+.Dv 0x
+are interpreted as hexadecimal.
Integer less than 2 are rejected.
Numbers are terminated by a non-digit character (such as a newline).
After a number is read, it is factored.