home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / aix / 9507 < prev    next >
Encoding:
Text File  |  1992-09-09  |  895 b   |  25 lines

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