How to display a max of two digits after the decimal point.

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
greasypalm
New php-forum User
New php-forum User
Posts: 6
Joined: Tue May 06, 2003 11:33 am

Wed May 07, 2003 1:06 am

Hi chaps :)

I really need some help on this it is totally doing my head in.

Right <?=$totaluniqueclicks / $MemberSignups?>
gives me the result: 8.8887362637363

How do I just get it to show the first 2 digits after the decimal point?

Help is very much appreciated :)

pootergeist
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK
Contact:

Wed May 07, 2003 3:20 am

$numba = number_format($numba,2);
avatar image based upon nasas apod (only updates if I post though)

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests