bc
1/2
0
5/3
1
10/3
3
When a fraction is entered into bc, the result is truncated to an integer. How can this behavior be avoided, such that the output of a division operation is a real number?
|
feedback
|
|
Try something like From the man page:
By default, the scale is 0, so no digits after the decimal are shown. | |||
|
feedback
|
|
Use the
| |||
|
feedback
|