[sage-support] Re: Square root problem

2009-07-19 Thread Utpal Sarkar
isqrt returns the integer part (floor) of a square root. On Jul 17, 7:33 am, Santanu Sarkar wrote: > Thank you. > > 2009/7/16 Marshall Hampton > > > > > > > I'm not quite sure what you want, but for example > > > sage: B = sqrt(1000) > > sage: floor(B) > > 31 > > > would give you the integer p

[sage-support] Re: Square root problem

2009-07-16 Thread Santanu Sarkar
Thank you. 2009/7/16 Marshall Hampton > > 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

[sage-support] Re: Square root problem

2009-07-16 Thread Marshall Hampton
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 wrote: > Supp