- Learning Apache Cassandra(Second Edition)
- Sandeep Yarabarla
- 124字
- 2021-07-03 00:19:29
Floating point and decimal numbers
Cassandra has three types that store non-integer numbers:
- The float type stores 32-bit IEEE-754 floating point numbers.
- The double type stores 64-bit IEEE-754 floating point numbers.
- The decimal type stores variable-precision decimal numbers, with no upper bound on size. Unlike a floating point number, a variable-precision decimal will never suffer from base 10 rounding errors in the fractional part of the number.
Like the integer types, the floating point and decimal types are always signed. In CQL, floating point and decimal literals are represented by an optional minus sign, followed by a series of digits, followed by a period, followed by another series of digits, such as 7,152.6846. You can also write them using exponential notation, such as 9.021e14.
推薦閱讀
- PPT,要你好看
- 數(shù)據(jù)挖掘?qū)嵱冒咐治?/a>
- Hands-On Machine Learning with TensorFlow.js
- 機(jī)器自動(dòng)化控制器原理與應(yīng)用
- 基于Xilinx ISE的FPAG/CPLD設(shè)計(jì)與應(yīng)用
- AMK伺服控制系統(tǒng)原理及應(yīng)用
- Learn Microsoft Azure
- FreeCAD [How-to]
- QTP自動(dòng)化測(cè)試實(shí)踐
- 大數(shù)據(jù)時(shí)代的調(diào)查師
- 51單片機(jī)應(yīng)用程序開發(fā)與實(shí)踐
- 系統(tǒng)安裝、維護(hù)與數(shù)據(jù)備份技巧
- 巧學(xué)活用Photoshop
- Arduino創(chuàng)意機(jī)器人入門:基于ArduBlock(第2版)
- 單片機(jī)技術(shù)