martin-sucha commented on issue #1578:
URL: 
https://github.com/apache/cassandra-gocql-driver/issues/1578#issuecomment-3316000605

   The documentation you linked only refers to CQL constants.
   
   Cassandra DECIMAL has wider precision than floats. The decimal data type 
contains a variable precision decimal number, see the [CQL protocol 
documentation](https://cassandra.apache.org/doc/latest/cassandra/_attachments/native_protocol_v5.html#s5.6).
 Converting to float32 or float64 can lose precision, which is why gocql does 
not support it.
   
   Consider a case when you have decimal data in the database and you 
round-trip values through gocql. Gocql avoids conversion to less precise type 
so that the precision of the values stored in the database is not degraded.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to