|
From: | Nicholas Jankowski |
Subject: | [Octave-bug-tracker] [bug #61672] printf does not print complex |
Date: | Tue, 14 Dec 2021 11:58:41 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36 |
Follow-up Comment #1, bug #61672 (project octave): that is known compatible behavior. matlab 2021b: >> sprintf("%f", sqrt(10)) ans = "3.162278" >> sprintf("%f", sqrt(-10)) ans = "0.000000" see following discussions on workarounds using num2str or separate real / imag variables: https://stackoverflow.com/questions/54174355/how-to-use-fprintf-with-complex-values/54174455 _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61672> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |