What should I set if I want to show numbers n, such that abs(n)<10**-11 with exponent? I can't set negative infinity here. On Wednesday, March 24, 2021 at 9:04:51 PM UTC+2 Paul Royik wrote:
> Thank you. > > On Wednesday, March 24, 2021 at 8:59:22 PM UTC+2 [email protected] wrote: > >> You can use the min and max flags to the printer function (like sstr() >> or pprint() or latex()). They set the minimum and maximum values to >> print as fixed point. You can use min=-float('inf'), max=float('inf') >> to always print every float as fixed point. These flags don't seem to >> be documented, but if you look at the documentation for >> mpmath.libmp.to_str, they are passed to the min_fixed and max_fixed >> flags of that function. >> >> Aaron Meurer >> >> On Wed, Mar 24, 2021 at 10:07 AM Chris Smith <[email protected]> wrote: >> > >> > Search online for "python print format number" >> > >> > >>> '{:f}'.format(5e-5) >> > 0.000050 >> > >> > On Wednesday, March 24, 2021 at 6:53:58 AM UTC-5 [email protected] >> wrote: >> >> >> >> How can I print Float(0.00005) as it is without exponent? >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "sympy" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to [email protected]. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/sympy/b2c340b5-a689-466d-abfb-83a6381d0379n%40googlegroups.com >> . >> > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/2190d612-8cfb-4403-b02a-c0516918d1a7n%40googlegroups.com.
