Formatting input numbers

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
deedee815
Forum Newbie
Posts: 3
Joined: Sun Apr 02, 2006 7:39 pm

Formatting input numbers

Post by deedee815 »

I'm creating a mortgage calculator that asks the user to input a Principal Loan Amount. I use this amount with other numbers in a formula to figure out monthly payments. Right now my calculator works great if the user inputs a number with no commas, but how do I accept numbers with or without commas to use in my formula?

Thanks for any help.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Post Reply