Borrar filtros
Borrar filtros

pyrun!How do I keep more decimals?

1 visualización (últimos 30 días)
slevin Lee
slevin Lee el 7 de Nov. de 2022
Respondida: Torsten el 7 de Nov. de 2022
>> pyrun("x1=0.24236152","x1")
ans =
0.2424
pyrun!How do I keep more decimals?

Respuestas (1)

Torsten
Torsten el 7 de Nov. de 2022
You keep all decimals in both cases - only the output format is different.
format long
pyrun("x1=0.24236152","x1")
ans =
0.242361520000000

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by