Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Convert it to REGEXP
alankis
Oct 25th, 2013
123
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
JavaScript
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
function
myPrice
(
price
)
{
price
=
price.
toString
(
)
;
return
price.
substr
(
0
,
price.
length
-
2
)
.
concat
(
'.'
,
price.
substr
(
-
2
)
)
;
}
myPrice
(
123456
)
;
//1234.56
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
?FREE 300$ GIFTCARDS? P8
Java | 1 min ago | 0.06 KB
MAKE $900 INSTANTLY T
JavaScript | 2 min ago | 0.07 KB
ke 3500$ in 1 day [Method]???? XH
Java | 3 min ago | 0.07 KB
Make $200 in 15 minutes G
JavaScript | 3 min ago | 0.07 KB
ke 3500$ in 1 day [Method]???? XH
Java | 4 min ago | 0.07 KB
FREE 500$ GIFTCARDS???? VF
Java | 5 min ago | 0.06 KB
300$ GIFTCARDS? P8
Java | 6 min ago | 0.07 KB
Make $3500 INSTANTLY [Works Worldwide]???? HL
Java | 7 min ago | 0.06 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!