diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-05-01 10:16:16 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-05-01 10:16:16 +0200 |
| commit | 52e017b923f37eb749a619329b3ac2874d53245e (patch) | |
| tree | 68e5c640d2a4069c435ee318b9dccc4b521e8066 /man | |
| parent | refsheet: correct definition of zbits (diff) | |
| download | libzahl-52e017b923f37eb749a619329b3ac2874d53245e.tar.gz libzahl-52e017b923f37eb749a619329b3ac2874d53245e.tar.bz2 libzahl-52e017b923f37eb749a619329b3ac2874d53245e.tar.xz | |
zdiv.3: rationale for truncated division
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'man')
| -rw-r--r-- | man/zdiv.3 | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -25,6 +25,14 @@ gets It is safe to call .B zdiv with non-unique parameters. +.SH RATIONALE +.B zdiv +rounds toward zero because this is what you expect +from the C programming language and is most often +what you want to do when rounding downwards. Note +however, this is not the same things as floored +division which is used in some programming languages +and some libraries. .SH SEE ALSO .BR zdivmod (3), .BR zstr (3), |
