Path: utzoo!attcan!uunet!yale!chen-dahe From: chen-dahe@CS.Yale.EDU (Dahe Chen) Newsgroups: comp.lang.c Subject: Thanks. Message-ID: <48948@yale-celray.yale.UUCP> Date: 27 Jan 89 18:53:39 GMT Sender: root@yale.UUCP Reply-To: chen-dahe@CS.Yale.EDU (Dahe Chen) Distribution: na Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 23 Two days ago I posted a question about casting. Thank everyone and all who responded. The following is what I found on my machine (VAX 3500 Ultrix V2.3): Use the scientific notation, i.e. A = a0.a1...an E p0...pm. (int)A casts to its integral part correctly only when n is less than 16. So does function floor. This result is based on code like if( (int)A <= (int)B ) { statement1 ; } else { statement2 ; } ------- Dahe Chen internet: dchen@twolf.ce.yale.edu ( @venus.ycc.yale.edu ) chen-dahe@cs.yale.edu bitnet: dchen@yalevms