pyrun!How do I keep more decimals?

2 visualizzazioni (ultimi 30 giorni)
slevin Lee
slevin Lee il 7 Nov 2022
Risposto: Torsten il 7 Nov 2022
>> pyrun("x1=0.24236152","x1")
ans =
0.2424
pyrun!How do I keep more decimals?

Risposte (1)

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

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by