Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

eleminating comma

Former Member
0 Likes
836

Hi friends, a currency field which has a value of 1,008,000.52 i need to use this value for some calculations like i need to multiply this with 0.75. any code will be helpful.

Thanks in advance.

Suresh..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
814

Hi Suresh,

we make currency field as p(Pack) and ur multiplier is also like p(pack) and perform ur calculation ok..If u are using pack type u get more accuracy in the result when compared to float that is why u better to go for pack instead float..

Award points if helpful.

Kiran Kumar.G

Have a Nice Day..

Edited by: KIRAN KUMAR on Jan 5, 2008 6:54 AM

Hi friends, a currency field which has a value of 1,008,000.52 i need to use this value for some calculations like i need to multiply this with 0.75. any code will be helpful.

Thanks in advance.

Suresh..

6 REPLIES 6
Read only

Former Member
0 Likes
814

hi if that is a curr field than the comma will come only when you write the value in list....well you can do all calculation with them.. i think so....

regards

saurabh

Read only

Former Member
0 Likes
814

Since that both are numeric fields, you can do any operations on those. Please let me know if you need any more info.

Regards,

Satya

Read only

abhishek_shukla3
Explorer
0 Likes
814

Put the currecy value into a variable of type p (packed number)

Read only

former_member156446
Active Contributor
0 Likes
814

you can do the arithmatic operation as it is provided the its currency field and numeric field. Dont bother about Comma's..

You can always make the changes for the commas in the user settings...

Read only

Former Member
0 Likes
815

Hi Suresh,

we make currency field as p(Pack) and ur multiplier is also like p(pack) and perform ur calculation ok..If u are using pack type u get more accuracy in the result when compared to float that is why u better to go for pack instead float..

Award points if helpful.

Kiran Kumar.G

Have a Nice Day..

Edited by: KIRAN KUMAR on Jan 5, 2008 6:54 AM

Read only

Former Member
0 Likes
814

Hi Suresh,

Don't bother abt comma.

U can go for any calculation if it is currency field.

If it usefull pls do reward.

Regards

Srimanta