Closed daveyostcom closed 8 years ago
The double is being stored as a long (for compatibility with older servers). To store double natively, set once:
Value.UseDoubleType = true;
In any case, you should always use Record.getDouble() to retrieve a double (which works when server value is stored as double or long).
How can I configure the client to always use the double type, instead of setting it on every value ?
UseDoubleType is a static variable that only has to be set once at program startup. It does not need to be set on every value.
Double support on the server side is relatively new. When servers that support doubles have been available long enough, we will change UseDoubleType default to true on the client.
The latest java client (3.2.3) now defaults UseDoubleType to true.
gives this result: