[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: float and random number generator
All other issues notwithstanding, you might want to
cast one of those ints to a float if you want an
actual floating point result. Of course you may have
left that out for brevity and if so, sorry to bother
you.
MD
--- aksingh@xxxxxxxxxxx wrote:
>
>
>
>
> Hi,
>
> So I can use a float in kernel modules right, if i
> use an expression,
>
> float some_float=some_int * some_int/some_int;,
>
> it isnt a problem, correct ???
>
> thanks
> Amit
>
>
> --
> Kernelnewbies: Help each other learn about the Linux
> kernel.
> Archive:
> http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/