An alternative interpretation of your question is that you are asking if sympy is aware of the rules for propagating significant digits through calculations? The answer is no. You have to apply the rules yourself to decide appropriate rounding.
Additional alternatives: 1) set up interval arithmetic to get a more precise version of the significant figures rules; 2) do full error propagation to determine uncertainties in your computations. Jonathan On Thursday, November 17, 2022 at 4:04:20 AM UTC-6 Oscar wrote: > The ordinary Python round function can do this: > https://docs.python.org/3/library/functions.html#round > > > On Thu, 17 Nov 2022 at 09:46, Peter Stahlecker <[email protected]> > wrote: > >> you might want to check floating point numbers in the sympy documentation. >> >> Am Do., 17. Nov. 2022 um 10:18 Uhr schrieb 'XR-7 RKE' via sympy < >> [email protected]>: >> >>> Hey guys, >>> >>> Does sympy support round a number to significant figures? >>> >>> [image: SCR-20221117-m64.png] >>> >>> -- >>> 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/4f5ae36a-60fb-429b-8f7a-e00e5637853fn%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/sympy/4f5ae36a-60fb-429b-8f7a-e00e5637853fn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> 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/CABKqA0ZhnozwJfww-y8Q7u%3DwiTHgdZGouwc5Kmi4obj8ZwJ4Ww%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/sympy/CABKqA0ZhnozwJfww-y8Q7u%3DwiTHgdZGouwc5Kmi4obj8ZwJ4Ww%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/ecdf27f8-aa80-4a6b-9c4d-e17c5a3117f1n%40googlegroups.com.
