Wednesday, April 10, 2013

About PHP / MySQL: Use Ceil to always round up

If you can't see this email, click here

About

PHP / MySQL

PHP Basics

MySQL Basics

Advanced Skills



From Angela Bradley, your Guide to PHP / MySQL
Hello Programmers!

This week we take a look at one way to round using PHP. The Ceil function is used to always round up. For example, if you needed a certain amount of sugar, and you could only order full bags not half or .74343 of a bag, you'd always need to round up to the amount of full bags to order.

Have a great week!


Use Ceil to always round up
Ceil (short for Ceiling) is used to always round a number up.  So for example, 5.1 and 5.9 would both round up to the number 6 if you were using... Read more

April Fools Day!
All around the world web masters are playing tricks on their readers today.  Its a fun little tradition to play an April fools day joke online.  Did you do something... Read more

What is a relational database?
You've heard the term relational database used to describe MySQL, but you might not actually know what it means.  This article helps you visualize what it is using real world... Read more

Tools and Resources
Tools and Resources useful to people working with PHP or MySQL.

 


Related Searches
Featured Articles
Troubleshooting
Programing Glossary
Reader Response
Social Networking with PHP @ About.com
Learn PHP
Learn MySQL

 

More from About.com

10 Easy Ways to Look Thinner
Don't wait until you've lost those first pounds to make these simple, slimming changes. Read more...>



Create a Shared Photo Stream
Sharing your photo stream with friends and family is a great way to keep in touch. Read more...>




This newsletter is written by:
Angela Bradley
PHP / MySQL Guide
Email Me | My Blog | My Forum
 
Sign up for more free newsletters on your favorite topics
You are receiving this newsletter because you subscribed to the About.com PHP / MySQL newsletter. If you wish to change your email address or unsubscribe, please click here.

About.com respects your privacy: Our Privacy Policy

Contact Information:
1500 Broadway, 6th Floor
New York, NY, 10036

© 2012 About.com
 


Must Reads
Learn PHP
Using PHP with MySQL
Learn MySQL
Create Email Forms
PHP Login Script
 
Follow me on:
Facebook Twitter

Advertisement

No comments:

Post a Comment