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 [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Question: Using floating point in the kernel Michael Vines
- Re: Question: Using floating point in the kernel Richard B. Johnson
- Re: Question: Using floating point in the kern... Timur Tabi
- Re: Question: Using floating point in the kern... Matthias Andree
- Re: Question: Using floating point in the kernel Marcus Sundberg
- Re: Question: Using floating point in the kernel Rusty Russell
- Re: Question: Using floating point in the kernel Lyle Coder
- Re: Question: Using floating point in the kern... Timur Tabi
- Re: Question: Using floating point in the ... Brian Gerst
- Re: Question: Using floating point in the ... Richard B. Johnson
- Re: Question: Using floating point in ... Alan Cox
- Re: Question: Using floating point in ... Arjan van de Ven
- Re: Question: Using floating point in the kern... Ricky Beam