coz by default all real values are converted to double and it is larger than float.ie real nos are not stored accurately inside computer memory.so since double occupies more memory it prints hi
On Fri, Aug 5, 2011 at 8:24 PM, Kamakshii Aggarwal <kamakshi...@gmail.com>wrote: > the reason is dat 0.7 is treated as double..therefore double(0.7) > >float(0.7) > > On Fri, Aug 5, 2011 at 8:20 PM, kartik sachan <kartik.sac...@gmail.com>wrote: > >> the output will be hi >> >> even if u have putted equal to sign there this is becoz 0.7 do not exactly >> stored like 0.7 in a but some thing lesser as describe in ASCII format >> that's why it is awlays lesser than 0.7 >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > Regards, > Kamakshi > kamakshi...@gmail.com > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.