No It will not. For negative number, it will fail.
On Sun, Jul 15, 2012 at 11:45 PM, Tanuj Makkar <[email protected]>wrote: > double round(double num) > { return (int)(num+0.5) > } > will it work all the time? > .......... > didnt get it........can anyone explain it.....thnx in advance..... > > On Friday, 26 August 2011 21:58:05 UTC+5:30, rahul sharma wrote: >> >> hi guys...microsoft is coming to our campus..plz nyone tell their >> recruitment procedure..n give me their previous xams question if nyone >> has...........but please tell me their selection procedure n >> rounds........cuming after 2 days.....plz reply soon.....n tell me the >> subjects to crack microsoft.............nyon having info reply fast >> plz...... > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/algogeeks/-/mWeduVanassJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
