# PHP Rounding Issue

**URL:** <https://forum.kirupa.com/t/php-rounding-issue/234127>\
**Category:** programming\
**Created:** [July 30, 2007, 7:17pm UTC](https://forum.kirupa.com/t/php-rounding-issue/234127 "2007-07-30T19:17:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dewey](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dewey](https://forum.kirupa.com/u/dewey)\
**Post date:** [July 30, 2007, 7:17pm UTC](https://forum.kirupa.com/t/php-rounding-issue/234127/1 "2007-07-30T19:17:44Z")

</div>

Hey Guys,

I am just finishing my first true PHP project and I am having a problem with positions after the decimal…

What I want to do is ALWAYS display percentages to 3 places after the decimal. I have the round function working, but even if the percentage is .75 I want to see .750 or .5 to be .500…

Is there a way I can do this?

Thanks,

–d
