You are here

How to get one decimal place in PHP

To get the one decial place in php can be achieved by using the round function.

To get the round value in php

 

To get one decimal place

 

To get two decimal places in php

 

Tags: 

Website fix request form

If you have problems with the website based on Drupal or WordPress, please feel free to contact us: