<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Le 04/12/2021 à 20:59, Samuel Gougeon a
      écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:96236b82-9bd2-34a1-b9d0-d832dad35e0f@free.fr">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>So, <i>unless you need to know the name <b>inside</b>
          printc() for some unsaid purpose</i>, what would be the
        difference between in one hand<br>
        <br>
        <font face="monospace">[name, mag, arg] = printc(myvar, "myvar")<br>
        </font><br>
        and on the other hand<br>
        <br>
        <font face="monospace">name = "myvar";<br>
          [mag, arg] = printc(myvar)<br>
        </font><br>
        ?<br>
      </p>
    </blockquote>
    <p><br>
    </p>
    <p>So, after your mail in private, you actually needs the variable's
      name inside the function.<br>
      Then, the easiest way to do what you expect could be to pass only
      the name:<br>
    </p>
    <pre style="font-family:Monospaced;font-style:normal;font-size:13.0;"><span style="color:rgb(176,24,19);">function</span> <span style="color:rgb(0,0,0);text-decoration:underline;">printc</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(131,67,16);font-weight:bold;">name</span><span style="color:rgb(74,85,219);">)</span>
  <span style="color:rgb(50,185,185);">execstr</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">c = </span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(92,92,92);">+</span><span style="color:rgb(131,67,16);font-weight:bold;">name</span><span style="color:rgb(74,85,219);">)</span>
  <span style="color:rgb(100,174,100);font-style:italic;">//Drucken einer komplexen Zahl mit Betrag und Winkel/°</span>
  <span style="color:rgb(50,185,185);">mprintf</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(74,85,219);">[</span><span style="color:rgb(131,67,16);font-weight:bold;">name</span><span style="color:rgb(92,92,92);">+</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">: %f    /_%7.2f°\n</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(50,185,185);">abs</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">c</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span> <span style="color:rgb(188,143,143);">180</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(218,112,214);">%pi</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(50,185,185);">atan</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(50,185,185);">imag</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">c</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(50,185,185);">real</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">c</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(176,24,19);">endfunction
<font face="monospace">
</font></span></pre>
    <font face="monospace">--> myVar = 3 - 2*%i</font><br>
    <font face="monospace"> myVar = </font><br>
    <font face="monospace"> 3. - 2.i</font><br>
    <br>
    <font face="monospace">--> printc myVar</font><br>
    <font face="monospace">myVar: 3.605551 /_ -33.69°</font><br>
    <p>Regards<br>
      Samuel<br>
    </p>
  </body>
</html>