Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
removeTrailingZerosFromDouble
a guest
Jan 2nd, 2019
391
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
public static String removeTrailingZerosFromDouble(double number) {
BigDecimal num = BigDecimal.valueOf(number).stripTrailingZeros();
return num.toPlainString();
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Changelly Bug (Get more on BTC swaps)
JavaScript | 9 sec ago | 0.15 KB
G2A Glitch (Working)
JavaScript | 15 sec ago | 0.15 KB
✅ Exploit 500$ in 15 Minutes
JavaScript | 22 sec ago | 0.15 KB
GMAIL Logs (2FA disabled)
JavaScript | 36 sec ago | 0.15 KB
Instant Profit Method
JavaScript | 49 sec ago | 0.15 KB
✅ MAKE $500 IN 15 MIN
JavaScript | 55 sec ago | 0.15 KB
✅ MAKE $900 INSTANTLY Y
JavaScript | 1 min ago | 0.15 KB
Changelly Bug (Get more on BTC swaps)
JavaScript | 1 min ago | 0.15 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!