Date: Wed, 30 Sep 92 12:54:34 GMT From: kuku AT acds DOT physik DOT rwth-aachen DOT de (Christoph Kukulies) To: ESCHN705 AT rz DOT braunschweig DOT ptb DOT dbp DOT de, djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: abs()olutely hopeless? You may either have two different abs's one for the int, one for the float case or you write a macro which takes care of what you want. Hint: GNU C has 'typeof'which might help - I don't know. Anyway, in C there is no automatic type conversion like in e.g. fortran. You always take care of it by yourself using casts. In C++ you might write a general class Number, which has subclasses Integer and Float. I think this is not what you want. --Chris