Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Function Bulatkan Angka (Dinamis) by Gdjnk Birowo
GarryLaly
Mar 13th, 2014
820
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
PHP
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
<?php
function
bulatkan_angka
(
$ke
,
$num
)
{
return
round
(
substr_replace
(
$num
,
'.'
,
$ke
,
0
)
)
.
str_repeat
(
'0'
,
strpos
(
$num
.
'.'
,
'.'
)
-
$ke
)
;
}
echo
bulatkan_angka
(
4
,
8161824.6
)
;
?>
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
biplas v34 - Market storage and live weather...
6 hours ago | 2.55 KB
biplas v32 - Colonies and late Town Halls
6 hours ago | 4.12 KB
biplas v28 - faster render and Road routing a...
6 hours ago | 2.22 KB
biplas v26 - Town orders panel, Gates and cus...
6 hours ago | 3.41 KB
biplas v23 - Monuments and Town Hall 25
6 hours ago | 2.13 KB
biplas v22
6 hours ago | 0.85 KB
biplas v21 - ok hab doch noch ein paar tokens...
6 hours ago | 2.04 KB
biplas v19 (erstmal letzte version, hab kein...
6 hours ago | 2.11 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!