官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 顺昌县| 基隆市| 财经| 土默特左旗| 景德镇市| 桃江县| 太和县| 彰化市| 梅州市| 浮山县| 称多县| 肇庆市| 井冈山市| 合作市| 景德镇市| 论坛| 莒南县| 湖州市| 深水埗区| 土默特右旗| 弥渡县| 南召县| 丹棱县| 凯里市| 阿瓦提县| 邛崃市| 泸定县| 博野县| 措勤县| 靖州| 太保市| 乌鲁木齐市| 安远县| 德兴市| 汤阴县| 江北区| 洛扎县| 宣汉县| 增城市| 南召县| 绥棱县|