Re: Question: Using floating point in the kernel

From: Matthias Andree (matthias.andree@stud.uni-dortmund.de)
Date: Tue Sep 19 2000 - 19:30:06 EST


On Tue, 19 Sep 2000, Richard B. Johnson wrote:

> long int radians = (long) (2.0 * 3.141592654 * (float) HZ);

Just out of curiosity: what's that cast to float about? Have it spring
into the eye of a casual reader? That pi constant already is a double
and C implicitly casts to the type with the wider range/higher
precision.

-- 
Matthias Andree
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:23 EST