3
$\begingroup$

For example, we can pass 3 to function N as N[Pi,3], and we can use the form Pi // N to apply N to Pi, but missed the argument.

Can we pass the argument to the "//" form?

$\endgroup$
4
  • 9
    $\begingroup$ try Pi//N[#,3]&? $\endgroup$
    – kglr
    Mar 15, 2020 at 13:10
  • $\begingroup$ Yeah, that works. $\endgroup$
    – liang
    Mar 15, 2020 at 13:13
  • 4
    $\begingroup$ you can also use Infix form: Pi~N~3 $\endgroup$
    – kglr
    Mar 15, 2020 at 13:25
  • 4
    $\begingroup$ Possible duplicate: Postfix with two arguments $\endgroup$
    – Szabolcs
    Mar 15, 2020 at 13:41

0

Browse other questions tagged or ask your own question.