Re: float and random number generator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@hss.hns.com 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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux