Is there a C equivalent of C#'s decimal type?

前端 未结 4 552
广开言路
广开言路 2021-01-17 22:26

In relation to: Convert Decimal to Double

Now, I got to many questions relating to C#\'s floating-point type called decimal an

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-17 22:58

    C2X will standardize decimal floating point as _DecimalN: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2573.pdf

    In addition, GCC implements decimal floating point as an extension; it currently supports 32-bit, 64-bit, and 128-bit decimal floats.

提交回复
热议问题