home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!gatech!hubcap!opusc!usceast!SMTC.engr.scarolina.edu!PERLMAN
- From: perlman@SMTC.engr.scarolina.edu
- Subject: Kornshell Arithmetic
- Message-ID: <1992Sep9.191134.24671@usceast.cs.scarolina.edu>
- Sender: usenet@usceast.cs.scarolina.edu (USENET News System)
- Reply-To: perlman@smtc00.engr.scarolina.edu
- Organization: NIST Southeast Manufacturing Technology Center
- Date: Wed, 9 Sep 92 19:11:34 GMT
- Lines: 13
-
- It seems that ksh supports only integer arithmetic, with values
- entered as real numbers truncated. EX: 9 / 4 evaluates to 2
-
- My Kornshell book by Bolsky & Korn indicates a -F attribute that
- might let me define a variable as Floating point, but the book isn't
- clear how to use it or whether its available in all ksh implementations.
- I assume that it would be used in a typeset command, but I can't make
- it work.
-
- Any help? Thanks in advance!
-
- Rich.
-
-