Question

2
Replies
881
Views
VamsiK64 Member since 2018 1 post
EclatPrime
Posted: 2 years ago
Last activity: 2 years 6 months ago
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
Share this page LinkedIn