Question

2
Replies
964
Views
Close popover
Vamsi Palyam (VamsiK64)
Levis

Levis
IN
VamsiK64 Member since 2018 1 post
Levis
Posted: February 19, 2018
Last activity: March 14, 2018
Closed

StringUtils - toPackedDecimal function

Hello,

I am trying to use the below function and it is throwing an exception - the method is undefined for the type PublicAPI.

My requirment is convert a byte to packed decimal format.

toPackedDecimal
public static byte[] toPackedDecimal(java.lang.String aPackedString,
boolean isSigned,
int digits,
int decimals)

Convert a string to byte array encoded as packed decimal data(COMP-3).
Parameters:
aPackedString - string containing decimal value.
isSigned - whether produce signed value or not
digits - number of digits in the whole part of the number
decimals - the number of implied decimal places.
Returns:
result

Data Integration Java and Activities
Moderation Team has archived post,
Close popover 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.