Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/factor mention hex numbers



details:   https://anonhg.NetBSD.org/src/rev/698c54953366
branches:  trunk
changeset: 977013:698c54953366
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 11 18:48:20 2020 +0000

description:
mention hex numbers

diffstat:

 games/factor/factor.6 |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 792b4a2ae017 -r 698c54953366 games/factor/factor.6
--- a/games/factor/factor.6     Sun Oct 11 18:46:21 2020 +0000
+++ b/games/factor/factor.6     Sun Oct 11 18:48:20 2020 +0000
@@ -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 @@
 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.



Home | Main Index | Thread Index | Old Index