From 1b6a0ff3b0ff5750f428ac1aa99731de23151424 Mon Sep 17 00:00:00 2001 From: apnadkarni Date: Mon, 9 Jun 2025 06:03:26 +0000 Subject: Clarify in manpage that lseq can produce doubles --- doc/lseq.n | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/lseq.n b/doc/lseq.n index 357d11f..bca2b12 100644 --- a/doc/lseq.n +++ b/doc/lseq.n @@ -19,7 +19,8 @@ lseq \- Build a numeric sequence returned as a list .BE .SH DESCRIPTION .PP -The \fBlseq\fR command creates a sequence of numeric values using the given +The \fBlseq\fR command creates a sequence of numeric values, which may +be either wide integers or doubles, using the given parameters \fIstart\fR, \fIend\fR, and \fIstep\fR. The \fIoperation\fR argument "\fB..\fR" or "\fBto\fR" defines the range. The "\fBcount\fR" option is used to define a count of the number of elements in the list. A short form @@ -42,6 +43,9 @@ empty list is returned. For example: % \fBlseq\fR 5 to 1 ;# decreasing \fI\(-> 5 4 3 2 1 +% \fBlseq\fR 0 0.5 by 0.1 ;# doubles +\fI\(-> 0.0 0.1 0.2 0.3 0.4 0.5\fR + % \fBlseq\fR 6 to 1 by 2 ;# decreasing, step wrong sign, empty list % \fBlseq\fR 1 to 5 by 0 ;# all step sizes of 0 produce an empty list -- cgit v0.12