This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
notes:bc_cheat_sheet [2026/09/16 03:52] 62.122.109.98 old revision restored (2026/08/27 23:28) |
notes:bc_cheat_sheet [2026/09/16 08:28] (current) 128.0.161.26 old revision restored (2026/09/02 01:08) |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| * bc is a [[http:// | * bc is a [[http:// | ||
| - | * bc by default runs in integer mode (scale=0) and with no trig functions, running | + | * bc by default runs in integer mode (scale=0) and with no trig functions, running |
| - | * bc can only take expressions on standard input (or in files), not directly on the command line e.g. echo 3+4 | bc | + | * bc can only take expressions on standard input or in files, not directly on the command line. One way to do a bc one-liner is '' |
| * [[http:// | * [[http:// | ||
| Line 23: | Line 23: | ||
| </ | </ | ||
| - | So now "mbc ' | + | So now '' |
| * bc uses readline so ⇑ and ⇓ (for history) and ctrl-r (for searching) work as expected. | * bc uses readline so ⇑ and ⇓ (for history) and ctrl-r (for searching) work as expected. | ||