Skip to Content
author's profile photo Former Member
Former Member

Decimal Value

I am dividing my Premium by 100 and then sending to the targetamt.

Premium is of type intege. 100 is constant and Targetamt is string.

The problem


Premium is 10000 then I am expecting Targetamt as 100.00, but what I am getting is 100.

On the other hand

if Premium is 10035 then I am getting the correct value 100.35.

I have tried changing the Premium data type to Float, Decimal, but every time for the whole numbers the Decimal portion is getting cut.

Any Suggestions please

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Dec 06, 2005 at 07:53 PM


    you have to do it insid ea user advanced function

    (inside graphical mapping for example)

    change the strig into an integer

    divide it and change it back to string


    string to int:

    someint = Integer.parseInt(somestring);

    int/double to string:

    somestring = String.valueof(someinteger);



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.