SagXD@lemy.lol to Lemmy Shitpost@lemmy.world · 10 months agoWeather app asking for permission to manage callslemy.lolimagemessage-square130fedilinkarrow-up11.4Karrow-down118
arrow-up11.38Karrow-down1imageWeather app asking for permission to manage callslemy.lolSagXD@lemy.lol to Lemmy Shitpost@lemmy.world · 10 months agomessage-square130fedilink
minus-squareBaŝto@discuss.tchncs.delinkfedilinkEnglisharrow-up2·10 months agoThere are many fun ways of calculating stuff. echo $((5+8)) or abusing REPL mode of python3 or node. My colleagues once made fun of me using galculator with a tiling wm:
minus-squareMarxism-Fennekinism@lemmy.mllinkfedilinkEnglisharrow-up1·10 months agoCall me a plebian but I still open up Python when I want to do calculations in the command line because I don’t know how to in Bash.
minus-squareBaŝto@discuss.tchncs.delinkfedilinkEnglisharrow-up2·edit-210 months agoIt’s complicated. $((5+8)) doesn’t support floats. For float you need bc and I always have to look up how to use it. You have to tell it how many numbers it should show scale=2;5/8, by default it also only does integer.
There are many fun ways of calculating stuff.
echo $((5+8))
or abusing REPL mode of python3 or node.My colleagues once made fun of me using galculator with a tiling wm:
Call me a plebian but I still open up Python when I want to do calculations in the command line because I don’t know how to in Bash.
It’s complicated.
doesn’t support floats. For float you need
bc
and I always have to look up how to use it. You have to tell it how many numbers it should showscale=2;5/8
, by default it also only does integer.