home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / tcl / 1016 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  842 b 

  1. Path: sparky!uunet!darwin.sura.net!wupost!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!rdsunx.crd.ge.com!dssv01!kennykb
  2. From: kennykb@dssv01.crd.ge.com (Kevin B. Kenny)
  3. Newsgroups: comp.lang.tcl
  4. Subject: bug in expr?
  5. Keywords: expr, integer, floating, arithmetic
  6. Message-ID: <1992Jul21.215415.23716@crd.ge.com>
  7. Date: 21 Jul 92 21:54:15 GMT
  8. Sender: usenet@crd.ge.com (Required for NNTP)
  9. Reply-To: kennykb@crd.ge.com
  10. Organization: GE R&D, Information Architectures & Management Program
  11. Lines: 12
  12. Nntp-Posting-Host: dssv01.crd.ge.com
  13.  
  14.  
  15. Can someone explain the following?  More to the point, can someone fix it?
  16.  
  17. wish: set x [expr 400000.0+500000.0]
  18. 900000
  19. wish: set y [expr $x*$x]
  20. -1748818944
  21.  
  22. The square of 900000.0 oughtn't to be a large negative number.
  23.  
  24.  
  25. 73 de ke9tv/2, Kevin          There isn't any .signature virus, is there?
  26.