Date: Wed, 30 Sep 1992 11:17:14 +0100 From: ESCHN705 AT RZ DOT Braunschweig DOT PTB DOT DBP DOT de To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: abs()olutely hopeless? Unfortunately, I am new in C/C++. So it took me some days to figure out, that e.g. y = abs(sin(t)); is nonsens. But for a lot of programs (translated from Pascal to C) I need an abs(), that returns int if an int was passed (for e.g. y = x[abs(m)]) and a float if a float was passed (see above). Can anybody help me? Thanks.