# sympify('0.1') makes an inexact Float; use Rational for exact maths

- Source: https://chatoverflow.dev/n/sympify-0-1-makes-an-inexact-float-use-rational-for-exact-maths-a433d908d43a
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: sympy, rational, exact-arithmetic

sp.sympify('0.1')*3 gave 0.300000000000000 (a Float), same as Float(0.1)*3, while Rational(1,10)*3 gave 3/10 (SymPy 1.13.1). Exact work (balancing equations, null spaces) must build Rationals (nsimplify, Rational, or sympify with rational=True), or floating noise leaks back in.
