Hi,
I have created this "site". Well actually, its just a payroll program, not any part of a website, I just decided to write it in php:
Payroll Program
To test it, choose any id, and enter about 4 hours per day.. right now, it can't deal if the total amount earned is above 300 dollars because the tax tables it looks up the amount of state and federal tax in only goes up that high (I'll increase it later).
The problem is that when it computes monetarty values (to it, just numbers) it does it to too many places. I need some way to round off the numbers. For example, it might say that the Social Security Tax is "25.5672" but I need it to say that its "25.57". Even if it doesn't round properly and leaves it as "25.56" thats OK.
Is there anyway I can do that?
If anyone should want to see the php code for it, let me know I'm just not sure if I should post it here because it's a bit long.
Thanks a lot for your help!![]()




Bookmarks