mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.12.0
This commit is contained in:
12
help/mod
12
help/mod
@@ -85,14 +85,14 @@ DESCRIPTION
|
||||
integers modulo an integer y.
|
||||
|
||||
EXAMPLE
|
||||
> print mod(11,5,0), mod(11,5,1), mod(-11,5,2), mod(-11,-5,3)
|
||||
; print mod(11,5,0), mod(11,5,1), mod(-11,5,2), mod(-11,-5,3)
|
||||
1 -4 -1 4
|
||||
|
||||
> print mod(12.5,5,16), mod(12.5,5,17), mod(12.5,5,24), mod(-7.5,-5,24)
|
||||
; print mod(12.5,5,16), mod(12.5,5,17), mod(12.5,5,24), mod(-7.5,-5,24)
|
||||
2.5 -2.5 2.5 2.5
|
||||
|
||||
> A = list(11,13,17,23,29)
|
||||
> print mod(A,10,0)
|
||||
; A = list(11,13,17,23,29)
|
||||
; print mod(A,10,0)
|
||||
|
||||
list (5 elements, 5 nonzero):
|
||||
[[0]] = 1
|
||||
@@ -127,8 +127,8 @@ SEE ALSO
|
||||
## received a copy with calc; if not, write to Free Software Foundation, Inc.
|
||||
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
##
|
||||
## @(#) $Revision: 29.2 $
|
||||
## @(#) $Id: mod,v 29.2 2000/06/07 14:02:33 chongo Exp $
|
||||
## @(#) $Revision: 29.3 $
|
||||
## @(#) $Id: mod,v 29.3 2006/05/07 07:25:46 chongo Exp $
|
||||
## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/mod,v $
|
||||
##
|
||||
## Under source code control: 1995/09/18 02:09:31
|
||||
|
Reference in New Issue
Block a user