Thanks.

Dahe Chen chen-dahe at CS.Yale.EDU
Sat Jan 28 04:53:39 AEST 1989


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 at twolf.ce.yale.edu ( @venus.ycc.yale.edu )
	    chen-dahe at cs.yale.edu
bitnet:	    dchen at yalevms



More information about the Comp.lang.c mailing list