Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
rounding fundamentals
Liliana797979
Apr 19th, 2021
122
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
JavaScript
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
function
rounding
(
number
,
precision
)
{
let a
=
Number
(
number
)
;
let b
=
Number
(
precision
)
;
if
(
b
>
15
)
{
b
=
15
;
}
a
=
a.
toFixed
(
b
)
;
console.
log
(
parseFloat
(
a
)
)
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Make $200 in 15 minutes 5
JavaScript | 35 sec ago | 0.07 KB
FREE BTC GUIDE P
JavaScript | 35 sec ago | 0.07 KB
✅ MAKE $12OO IN 10 MIN W
JavaScript | 53 sec ago | 0.07 KB
Make $200 in 15 minutes X
JavaScript | 1 min ago | 0.07 KB
Make 1500$ in 20 MIN [Method] Q
JavaScript | 1 min ago | 0.07 KB
✅ MAKE $12OO IN 10 MIN 3
JavaScript | 2 min ago | 0.07 KB
FREE BTC GUIDE 1
JavaScript | 2 min ago | 0.07 KB
Make 1500$ in 20 MIN [Method] 3
JavaScript | 2 min ago | 0.07 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!