Comma acts as a decimal

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
New php-forum User
New php-forum User
Posts: 40
Joined: Tue Jan 10, 2012 3:00 pm

Sun Oct 21, 2012 12:50 am

I have a calculator that is processed with php. The user enters numbers into an html form. The problem is when I enter a number with commas it treats the comma as a decimal. ie. 100,000 is treated as 100. Is there is a way to make the form accept commas as separators not decimals.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests