Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Answer to: CodeGolf: Converting a number to British currency
eniallator
Jul 26th, 2018
333
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
JavaScript
0.09 KB
| None
|
0
0
raw
download
clone
embed
print
report
f
=
(
n
,
i
=
0
)
=>
n
<
0.01
?
''
:
(
e
=
n
-
'521'
[
i
%
3
]
*
10
**
(
1
-
~~
(
i
/
3
)
)
)
>=
0
?
i
+
','
+
f
(
e.
toFixed
(
2
)
,
i
)
:
f
(
n
,
i
+
1
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
5 min ago | 13.08 KB
Matthew Quote
27 min ago | 0.18 KB
Input_AOC
4 hours ago | 18.01 KB
Untitled
18 hours ago | 13.15 KB
Analog GPUs: THE FUTURE
23 hours ago | 8.88 KB
Quotes I believe to be true.
23 hours ago | 0.16 KB
Die 7 wichtigsten Aktionen diese Woche
1 day ago | 4.17 KB
Untitled
1 day ago | 13.34 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!