Skip to content

Schools of Web

Teach Yourself Web Development and Web Designing Step by Step With Easy Explanation

  • All About PHP
    • PHP for Beginners
    • PHP Function List
    • PHP How-to
  • HTML
    • HTML for Beginners
    • HTML How-to
  • CSS
    • CSS for Beginners
    • CSS How-to
Search Search Close
  • Home
  • rounding numbers

Tag: rounding numbers

Apr 29

How to Round a Number to Two Decimal Places in PHP?

Neil FinLeave a commentPHP How-toround to two decimal places, rounding numbers

Problem: You have a number (ex. 549.767, 549, or .549). You want to round the number to 2 decimal places (ex. 549.77, 549.00, or 0.55).

Courses

  • PHP for Beginners
  • CSS for Beginners
  • HTML for Beginners

How-to Tutorials

  • PHP How-to
  • HTML How-to

About this site

Schools of Web is run by web developer and designer to help others learn it easily.
  • Home
  • About Us
  • Contact Us
  • Privacy Policy
  • Earnings Disclaimer
Copyright © All rights reserved.
Education Soul by WEN Themes