2010/8/24 Pradip Caulagi <caul...@gmail.com> > On Tue, Aug 24, 2010 at 4:05 PM, Arulalan T <arulal...@gmail.com> wrote: > > > > In python, I need to set the floating point precision as 2. > > > > I am getting the following output in python while adding two float nos. > > > >>>>a=79.73 > >>>>b=0.5 > > Multiply by 100. > Add as integers. > Divide by 100. >
Yes, we can do this way. By this way I can handle 80 and 23 as two separate integers. But when I want make it as float >>>80+0.23 80.230000000000004 again it will be come same floating value. so I cant use this way. -- Regards, Arulalan.T Kanchi Linux User Group Rocks ! http://kanchilug.wordpress.com My Experiments In Linux are here http://tuxcoder.wordpress.com _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers