Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
DY94
Contributor II
Contributor II

Create Function class in My Routine

Hi,

Anyone Can help me to fix my Java Function to use it in my Routine.

 

The Function will remove exponent and put it in a Float format.

 

This is the function :

 

float amount = 3.53435E12;

java.text.DecimalFormat df = new java.text.DecimalFormat("# .# ");

String s=df.format(amount );

System.out.println("amount = " + s);

 

it will convert the number format from this 3.53435E12 to this 3 534 350 000 000

 

the result will be like this ---> 3 534 350 000 000

 

Now i want to create a function in my Routine in order to use it in Tmap with my column.

Thanks.

Labels (6)
1 Reply
Anonymous
Not applicable

Hello

Here is a KB article that shows you how to create a user routine and call it in a job. Please try and let me know if you have any questions.

 

Regards

Shong