float

来自「C实现的MUD,对大家基本入门网络游戏很有帮助!」· 代码 · 共 14 行

TXT
14
字号
MudOS LPC now provides support for the floating point type.  Declare
variables like this:

float pi;

In general the same operations are supported for floats as are for integers.
Floating point constants may contain decimal points e.g.

pi = 3.14159265;

The LPC float type is based on the single precision floating point type
provided by C.  On most machines this will give about seven (7) digits
of precision (in base 10).

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?