[sage-support] Re: Behavior modulo float

2015-11-24 Thread Nils Bruin
On Tuesday, November 24, 2015 at 7:39:53 AM UTC-8, steven roumajon wrote: > > Hi, > > For obscure reasons, I tried modulo with floats with sage. > I had an unexpected result. > > In sage: > sage: 0.257%0.5 > -0.243 > > Tried under python: > >>> 0.257%0.5 > 0.257 > The sage behaviour

Re: [sage-support] Re: Behavior modulo float

2015-11-24 Thread Nathann Cohen
> The sage behaviour follows mpfr_remainder (which it uses); Is it wise to *not* follow python for something like that? Nathann -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it,