Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.unix.shell > #22501
| From | Janis Papanagnou <janis_papanagnou@hotmail.com> |
|---|---|
| Newsgroups | comp.unix.shell |
| Subject | Re: Arithmetic trivia (Was: [ANN] KornShell 93u+m 1.0.0-beta.2) |
| Date | 2021-12-17 21:39 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <spishe$5s9$1@dont-email.me> (permalink) |
| References | <j22f1cFh5m2U1@mid.individual.net> <sphijs$ejq$1@dont-email.me> <j236fkFldviU1@mid.individual.net> <JGDDG6C28aBHRfrQ6@bongo-ra.co> <spi28d$1vkeo$1@news.xmission.com> |
On 17.12.2021 14:10, Kenny McCormack wrote: > > If you want to use 255 (i.e., hex FF), then you have to use an 'and' > operator. > i.e., either of: > 12345 % 256 > or: > 12345 & 255 Yep, just a typical well known careless mistake. In the same vein as implementing the integer division x div 2 # x/2 by x shr 1 # x>>1 but writing by accident x>>2 (a careless mistake I made 35 years ago in a test and still recall); a favorable reader will understand the intention, but a computer will merciless execute it. Janis
Back to comp.unix.shell | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[ANN] KornShell 93u+m 1.0.0-beta.2 Martijn Dekker <martijn@inlv.demon.nl> - 2021-12-17 04:38 +0100
Re: [ANN] KornShell 93u+m 1.0.0-beta.2 Janis Papanagnou <janis_papanagnou@hotmail.com> - 2021-12-17 09:43 +0100
Re: [ANN] KornShell 93u+m 1.0.0-beta.2 Martijn Dekker <martijn@inlv.demon.nl> - 2021-12-17 11:18 +0100
Re: [ANN] KornShell 93u+m 1.0.0-beta.2 Spiros Bousbouras <spibou@gmail.com> - 2021-12-17 12:50 +0000
Arithmetic trivia (Was: [ANN] KornShell 93u+m 1.0.0-beta.2) gazelle@shell.xmission.com (Kenny McCormack) - 2021-12-17 13:10 +0000
Re: Arithmetic trivia (Was: [ANN] KornShell 93u+m 1.0.0-beta.2) Janis Papanagnou <janis_papanagnou@hotmail.com> - 2021-12-17 21:39 +0100
Re: [ANN] KornShell 93u+m 1.0.0-beta.2 Martijn Dekker <martijn@inlv.demon.nl> - 2021-12-17 19:58 +0000
Re: [ANN] KornShell 93u+m 1.0.0-beta.2 Janis Papanagnou <janis_papanagnou@hotmail.com> - 2021-12-18 15:07 +0100
Re: [ANN] KornShell 93u+m 1.0.0-beta.2 Martijn Dekker <martijn@inlv.demon.nl> - 2021-12-19 21:00 +0000
Re: [ANN] KornShell 93u+m 1.0.0-beta.2 Martijn Dekker <martijn@inlv.demon.nl> - 2021-12-21 19:12 +0000
Re: [ANN] KornShell 93u+m 1.0.0-beta.2 Janis Papanagnou <janis_papanagnou@hotmail.com> - 2021-12-24 14:46 +0100
csiph-web