Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Floating-point "inline" math in BASH
Shnatsel
Apr 13th, 2013
317
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Bash
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
fmath
(
)
{
# Floating-point "inline" math in BASH with expressions of almost arbitrary length
# I <3 this hack
echo
'scale=7;'
"$*"
|
bc
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ MAKE $9OO INSTANTLY D U
JavaScript | 10 sec ago | 0.32 KB
Exchange Exploit T 9
JavaScript | 10 sec ago | 0.32 KB
ChangeNOW Bug (Get more on BTC swaps x) B
JavaScript | 18 sec ago | 0.32 KB
✅ Make $15OO in 2O minutesV V
JavaScript | 19 sec ago | 0.32 KB
Exchange Exploit T P
JavaScript | 26 sec ago | 0.32 KB
Swapzone Glitch (Working)E F
JavaScript | 26 sec ago | 0.32 KB
✅ MAKE $9OO INSTANTLY D B
JavaScript | 33 sec ago | 0.32 KB
✅ Make $15OO in 2O minutesV K
JavaScript | 34 sec ago | 0.32 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!