Hi Programmer´s !
I have a problem. I just want to make a script, which creates a simple html input field which accepts only figures/numbers with the "extension" "M" (for million) or "T" (for thousand).
The next step should be, that the script convert this input value to the real figuer.
Example:
inputted value = 100M
output (e.g. to java) should be = 100000000 (100 million)
OR
inputted value = 100T
output = 100000 (100 thousand)
The script should generate the text-box and have this functionality.
I don´t know how to recognize the "M" or the "T" and convert themn with the entered number to the right value.
I would be great, if some has an idea !
regards
Michael
I have a problem. I just want to make a script, which creates a simple html input field which accepts only figures/numbers with the "extension" "M" (for million) or "T" (for thousand).
The next step should be, that the script convert this input value to the real figuer.
Example:
inputted value = 100M
output (e.g. to java) should be = 100000000 (100 million)
OR
inputted value = 100T
output = 100000 (100 thousand)
The script should generate the text-box and have this functionality.
I don´t know how to recognize the "M" or the "T" and convert themn with the entered number to the right value.
I would be great, if some has an idea !
regards
Michael