SHARE
TWEET

Function Bulatkan Angka (Dinamis) by Gdjnk Birowo

GarryLaly Mar 13th, 2014 577 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. function bulatkan_angka($ke, $num) {
  3. return round(substr_replace($num, '.', $ke, 0)).str_repeat('0',strpos($num.'.','.')-$ke);
  4. }
  5. echo bulatkan_angka(4, 8161824.6);
  6. ?>
RAW Paste Data
Top