Jumat, 20 September 2013

PHP Indonesia - Facebook: Hello! I need little bit help! $number = 1.24; $...

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/ 
Creating iOS Games: Beginner Course

Marin Todorov teaches you how to create an iPhone game easily and simply using Cocos2d in this $99 online course.
From our sponsors
Hello! I need little bit help! $number = 1.24; $...
Sep 21st 2013, 01:56, by Olavi Allik

Olavi Allik 1:56am Sep 21
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

Yein Narayana 2:00am Sep 21
maybe you can use ceil(1.24);

Olavi Allik 2:03am Sep 21
hmm i just try but it show 1 not 2

Aris Gates 2:04am Sep 21
you must now about ceil() and floor()

Olavi Allik 2:04am Sep 21
oh sorry i got it :)

Olavi Allik 2:04am Sep 21
Thanks! :)

Yein Narayana 2:04am Sep 21
i have tried using ceil and it works -_-

Olavi Allik 2:05am Sep 21
Yes it work... i echo ceil($value); that been reason why it shown 1 :P

Olavi Allik 2:06am Sep 21
i change ceil($number); and it work! :)

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar