Thank you. 2009/7/16 Marshall Hampton <hampto...@gmail.com>
> > I'm not quite sure what you want, but for example > > sage: B = sqrt(1000) > sage: floor(B) > 31 > > would give you the integer part (rounded down since its floor). The > round() function might be what you want instead (round(B) is 32.0). > > -Marshall Hampton > > On Jul 16, 10:05 am, Santanu Sarkar <sarkar.santanu....@gmail.com> > wrote: > > Suppose we want to find just integer part of square root 1000. Say > > B=sqrt(1000). Then how can I use digits function i,e. B.digits() to find > the > > bits of B. > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---