You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sorry I didn't find what I was looking for, Currently my influx version is 1. X ,In influxdb-java:2.22 I found out: Builder field.
If the type in my POJO is Float or BigDecimal, Converting to double will cause the problem of losing accuracy,
So What should I do?
for Example : @column(name="voltage")
private Float voltage;
Because the store converts the Float to a Double, Accuracy is lost when fetched @eranl
Activity
eranl commentedon May 17, 2024
Hi @fishered, I'm not sure I understand the issue. Please see the relevant manual section, and let me know if it answers your question.
fishered commentedon May 21, 2024
I'm sorry I didn't find what I was looking for, Currently my influx version is 1. X ,In influxdb-java:2.22 I found out: Builder field.
If the type in my POJO is Float or BigDecimal, Converting to double will cause the problem of losing accuracy,
So What should I do?
for Example :
@column(name="voltage")
private Float voltage;
Because the store converts the Float to a Double, Accuracy is lost when fetched @eranl
eranl commentedon Jun 3, 2024
@fishered, double has higher precision than float.