Timeline for Can I do basic maths in Bash?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 8, 2019 at 16:32 | comment | added | mazunki |
and if you only have python3 installed, but want rounding, use 2//30 or int(2/30)
|
|
Aug 28, 2018 at 11:52 | comment | added | hrvoj3e |
use python3 if you don't want float rounding. e.g. 2 / 30 (python: 0 ) (python3: 0.06666666666666667 )
|
|
S Feb 2, 2017 at 19:25 | history | suggested | derek | CC BY-SA 3.0 |
Added useful information
|
Feb 2, 2017 at 17:54 | review | Suggested edits | |||
S Feb 2, 2017 at 19:25 | |||||
Mar 11, 2011 at 7:14 | comment | added | ShreevatsaR |
On my computer, typing python takes nearly two seconds to start. Rather annoying if you just want to do something simple like 2+2.
|
|
Mar 11, 2011 at 0:57 | vote | accept | Kurru | ||
Mar 11, 2011 at 0:57 | |||||
Mar 11, 2011 at 0:57 | vote | accept | Kurru | ||
Mar 11, 2011 at 0:57 | |||||
Mar 11, 2011 at 0:54 | history | answered | Marcus Maxwell | CC BY-SA 2.5 |