Formatting Numbers for Arithmatic
Posted: Wed Jan 29, 2014 11:31 am
I am currently fetching my data from my database like this:
select format(sum(numberField),2) as numberField from table
Which returns a number formatted like this : 1,234.56.
Livecode does not seem to like it when I try and add two numbers with this formatting together. I have looked at selecting the data without formatting but am then having trouble formatting inside LiveCode. I was always used to using numberFormat to format my data but this does not seem to work either.
Can anyone suggest the best way for me to get the formatting I require.
Thanks.
Nic
select format(sum(numberField),2) as numberField from table
Which returns a number formatted like this : 1,234.56.
Livecode does not seem to like it when I try and add two numbers with this formatting together. I have looked at selecting the data without formatting but am then having trouble formatting inside LiveCode. I was always used to using numberFormat to format my data but this does not seem to work either.
Can anyone suggest the best way for me to get the formatting I require.
Thanks.
Nic