It is just displaying the floating point in the specified precision format. The internal representation is obviously unchanged.
On Sat, Aug 13, 2011 at 10:44 PM, Prakash D <[email protected]> wrote: > i dont think we can set precision during scanf > > On Sat, Aug 13, 2011 at 9:49 PM, Anika Jain <[email protected]> wrote: >> >> @gaurav: nyc one ;) how u made this one well? >> >> On Sat, Aug 13, 2011 at 6:14 PM, SANDEEP CHUGH <[email protected]> >> wrote: >>> >>> lol >>> >>> On Sat, Aug 13, 2011 at 6:12 PM, Gaurav Menghani >>> <[email protected]> wrote: >>>> >>>> http://lmgtfy.com/?q=scanf+float+precision+format >>>> >>>> On Sat, Aug 13, 2011 at 5:42 PM, SuDhir mIsHra >>>> <[email protected]> wrote: >>>> > e g: scanf("%2.4d",&a); >>>> > >>>> > -- >>>> > 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. >>>> > >>>> >>>> >>>> >>>> -- >>>> Gaurav Menghani >>>> >>>> -- >>>> 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. >>>> >>> >>> -- >>> 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. >> >> -- >> 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. > > -- > 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. > -- Gaurav Menghani -- 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.
