PHP Indonesia - Facebook | PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ | |
|
Hello! I need little bit help! $number = 1.24; $... Sep 21st 2013, 01:56, by Olavi Allik | Hello! I need little bit help!
$number = 1.24; $value = $number_format($number); => 1
it show 1, but i need that allways show bigger number |
| | maybe you can use ceil(1.24); |
| | hmm i just try but it show 1 not 2 |
| | you must now about ceil() and floor() |
| | oh sorry i got it :) |
| | Thanks! :) |
| | i have tried using ceil and it works -_- |
| | Yes it work... i echo ceil($value); that been reason why it shown 1 :P |
| | i change ceil($number); and it work! :) | | |
|
Tidak ada komentar:
Posting Komentar