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