On Fri, Jun 1, 2012 at 1:25 PM, Joachim Durchholz <[email protected]> wrote:
> Am 01.06.2012 09:25, schrieb Chris Smith:
>>
>> How about round down and then add your interval width?
>
>
> You'll add a rounding unit if the input value happens to be exact.
>

Can the interval have zero width? If so then, yes, and b could then be
calculated as

b=(a+10**-3).round(3) if a!=n else a

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy?hl=en.

Reply via email to