This can work: floor($number * 100) / 100
More Related Contents:
- Show a number to two decimal places
- How to pad single-digit numbers with a leading 0
- Print numeric values to two decimal places
- How to round up a number to nearest 10?
- Round up to nearest multiple of five in PHP
- Remove useless zero digits from decimals in PHP
- What’s the disadvantage of mt_rand?
- Rounding to nearest fraction (half, quarter, etc.)
- How to ceil, floor and round bcmath numbers?
- Delete digits after two decimal points, without rounding the value
- PHP number format
- Round to max thousand, hundred etc in PHP
- Convert exponential number to decimal in php
- PHP: get number of decimal digits
- Set precision for a float number in PHP
- How to display Currency in Indian Numbering Format in PHP?
- How to prefix a positive number with plus sign in PHP
- PHP convert decimal into fraction and back?
- Reference — What does this symbol mean in PHP?
- Nginx serves .php files as downloads, instead of executing them
- Global or Singleton for database connection?
- Checking if form has been submitted – PHP
- Listing all the folders subfolders and files in a directory using php
- Export MySQL data to Excel in PHP
- In PHP, how do I extract multiple e-mail addresses from a block of text and put them into an array?
- PHP String Manipulation: Extract hrefs
- Find Point in polygon PHP
- How to get only images using scandir in PHP?
- What is the difference between array_udiff_assoc() and array_diff_uassoc()?
- Replace woocommerce_add_order_item_meta hook in Woocommerce 3.4