Question5Replies1141Views adrihildas Member since 2016 6 posts PT ASURANSI SIMAS JIWA Posted: February 6, 2017Last activity: February 6, 2017 Closed Solved Power function in Data Transfrom#HelpPegaExpertHei why i can't use math function like power in Data Transfrom?i want to use power function in Data transfrom like (10^2)thanks before :) Low-Code App Development Low-Code App Development Dev/Designer Studio Data Integration ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Accepted Solution Posted: 3 years agoPrudhvi_N PEGA replied to adrihildasHi, Please do the following: 1) Save as Math Library of Pega-Rules ruleset into your custom ruleset and save the rule. 2) Check Library ready to be compiled? checkbox and click on 'Generate Library' button. 3) Create a function with name Power with two input parameters of string type, make output data type as 'double' and usage type as 'Output Formatting'. 4) If we want to calculate POWER(4,3); here in this example I am taking Input1 as 4 and Input2 as 3. So, under java tab give the below expression: Double myD = new Double(input1); Double myD1 = new Double(input2); double d = myD.doubleValue(); double d1 = myD1.doubleValue(); return Math.pow(d, d1); If you have any doubts, please let me know. Thanks, Ranz Posted: 3 years agoadrihildas PT ASURANSI SIMAS JIWA replied to Prudhvi_Nthanks for helping Prudhvi_N i try save as Math Library of Pega-Rules ruleset into my custom ruleset but i get error Library— ** The Library does not exist or the library is defined in a different Rule Set here my screenshot Posted: 3 years agosidds2 PEGA replied to adrihildasThat's because you skipped the step #1 in Prudhvi_N's response (1) Save as Math Library of Pega-Rules ruleset into your custom ruleset and save the rule. Posted: 3 years agoPrudhvi_N PEGA replied to adrihildasAdding to sidds, I have implemented the above steps and it is working fine at my end. Please let me know, if any other details required. Posted: 3 years agoSushantSamuel PEGA replied to adrihildasHi, From the screenshot it looks like you are doing a saves as of the function notequal instead of Math library.. Navigate to Records->Technical->Library-> Save AS Library Name Math.create your power function.