Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Comma acts as a decimal

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Comma acts as a decimal

Postby babygirl » 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.
User avatar
babygirl
New php-forum User
New php-forum User
 
Posts: 40
Joined: Tue Jan 10, 2012 3:00 pm

Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.