- 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.
推薦閱讀
- 大數(shù)據(jù)戰(zhàn)爭:人工智能時代不能不說的事
- Mastering Matplotlib 2.x
- Hands-On Internet of Things with MQTT
- Learning Microsoft Azure Storage
- 樂高機(jī)器人EV3設(shè)計指南:創(chuàng)造者的搭建邏輯
- 反饋系統(tǒng):多學(xué)科視角(原書第2版)
- TIBCO Spotfire:A Comprehensive Primer(Second Edition)
- STM32G4入門與電機(jī)控制實(shí)戰(zhàn):基于X-CUBE-MCSDK的無刷直流電機(jī)與永磁同步電機(jī)控制實(shí)現(xiàn)
- 大數(shù)據(jù)安全與隱私保護(hù)
- 計算機(jī)網(wǎng)絡(luò)技術(shù)基礎(chǔ)
- INSTANT Autodesk Revit 2013 Customization with .NET How-to
- 影視后期編輯與合成
- 網(wǎng)絡(luò)管理工具實(shí)用詳解
- TensorFlow Deep Learning Projects
- 手把手教你學(xué)Photoshop CS3