cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the interface DecimalNumber

Former Member
0 Kudos
2,505

Hi,

I've been using UltraliteJ for Android and trying to get and set a unsigned long value to my table from java, through the method set(int, DecimalNumber), but I don't know how can I use this interface to do it. There are some methods to implement, but how can I do it? Could anyone help me?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member

I would use Connection.createDecimalNumber(20, 0, "18446744073709551615") to create a DecimalNumber object for the maximum unsigned bigint value. By retrieving unsigned bigint's as DecimalNumber's you can perform arithmetic operations with them. If you are simply setting and getting unsigned bigint values, without needing to do arithmetic operations, you could just set and retrieve them as String's.