# Percents

**URL:** <https://forum.kirupa.com/t/percents/180937>\
**Category:** programming\
**Created:** [March 4, 2006, 8:07pm UTC](https://forum.kirupa.com/t/percents/180937 "2006-03-04T20:07:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dreamerp](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@dreamerp](https://forum.kirupa.com/u/dreamerp)\
**Post date:** [March 4, 2006, 8:07pm UTC](https://forum.kirupa.com/t/percents/180937/1 "2006-03-04T20:07:09Z")

</div>

Hello,

I was looking on the php web site and google on how to find a percentage with PHP.

I can divide the number but it comes out as a decimal such as-

```php
$a = 49 / 50;

echo "$a %";

```

This echos 0.98 % . I would want it to echo 98 % . How can I do this?

Thanks!
