Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 07:26
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash 8 (Moderators: Jorge Solis, ..:: Mazhar Hasan ::.., Andresss)
| | |-+  set currency in flash like flash
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: set currency in flash like flash  (Read 918 times)
ricky
Server what's that
*
Posts: 2


View Profile Email
« on: 11/10/09, 11:34 »

i had a problem in input text in number, in flash , i make a flash-mysql-php database, so input text used for set a price of an item.

example :
item A , price : (input) 10000000 , i just want to make it appear tobe : 10.000.000 .
i found a makecomma function, but, when i want to save the next item.. the problem begiin.

input : 10000000 ~ make comma to -> 10.000.000

Item A : 10.000.000
Item B : 5.500.000
then if i want total it, it shoud be... 15.500.000 an save to database,
but.... makeComma Function can't plus item A and Item B  price... .

any body can help?

Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #1 on: 11/11/09, 05:37 »

To add the decimal point the function should convert to String, so use a string representación for displaying, but use another numeric value internally to perform math operations

Jorge
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!